Skip to content

Fraction multiplication #3

Description

@ballandt

def __mul__(self, other: REAL) -> 'Fraction':

The Fraction.__mul__ method can return None if the argument is not a REAL or a Fraction (so for example a Vector). Also there are two ifs and no elif.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions