KEMBAR78
NotImplemented is not callable · Issue #3315 · python/typeshed · GitHub
Skip to content

NotImplemented is not callable #3315

@ltworf

Description

@ltworf

I'm aware of this python/mypy#6710

I understand the points raised here python/mypy#6710

However the current issue is that

raise NotImplemented()

seems perfectly valid to mypy when in fact it isn't, since it's not callable.

So basically, it should have been a NotImplementedError but mypy didn't find it (I found it with pyflakes).

Do you think it is possible to make it an almost-but-non-callable-Any?

Otherwise it could perhaps be mypy to warn about odd uses?

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