KEMBAR78
SupportsDivmod · Issue #3047 · python/mypy · GitHub
Skip to content

SupportsDivmod #3047

@orenbenkiki

Description

@orenbenkiki

There doesn't seem to be such a thing right now, so when I add divmod to my class, mypy still complains:

error: Type argument 1 of "divmod" has incompatible value "MyClassHere"

error: Type argument 1 of "divmod" has incompatible value "SupportsInt"

For the same line (my class does SupportsInt).

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