Skip to content

some of PyNumberProtocol methods are broken #48

@fafhrd91

Description

@fafhrd91

current signature:

fn __add__(&self, rhs: Self::Other) -> Self::Result

but python treat it as:

fn __add__(lhs: Self::Left, rhs: Self::Right) -> Self::Result

&self is Self::Left or Self::Right, depends on actual expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions