Skip to content

Duration __eq__ method should not raise NotImplementedError #24

@coopstah13

Description

@coopstah13

This prevents equality checks with different objects than other Duration objects.
Also should not be doing this in __add__, __sub__ or __rsub__ either.

See https://docs.python.org/3.11/library/constants.html#NotImplemented

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