Skip to content

Unreached/Unreachable(?) paths in tslib #17379

Closed
@jbrockmendel

Description

@jbrockmendel

in tslib._Timedelta.__richcmp__ there is a path that is not reached in tests that I think may not be reachable, seeking second opinions. If there are corner cases where this can be reached, they should be added to the tests.

        if isinstance(other, _Timedelta):
            if isinstance(other, _NaT):
                return _cmp_nat_dt(other, self, _reverse_ops[op])

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanInternalsRelated to non-user accessible pandas implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions