You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importwarningsfromtypingimportNoReturndeffoo() ->NoReturn:
warnings.warn("this is deprecated", DeprecationWarning)
raiseNotImplementedErrorfoo() # I would expect a warning here
Pitch
I think it would be based to report against deprecated methods, PyCharm supports this:
Another use case for this is warning of "unsupported operations":
classA:
deffoo(self) ->None:
print()
classB(A):
deffoo(self) ->NoReturn:
warnings.warn("this is an unsupported operation", DeprecationWarning)
raiseNotImplementedError()
B().foo() # I would like a warning that this is unsupported
The text was updated successfully, but these errors were encountered:
@hauntsaninja What is the status of supporting PEP 702 in mypy? I tried to find some information or a tracking issue, but on first glance I couldn't find anything.
Feel free to open a tracking issue, or even better, a PR that implements it. Note that PEP 702 hasn't yet been officially accepted, so support would be provisional.
Feature
Pitch
I think it would be based to report against deprecated methods, PyCharm supports this:

Another use case for this is warning of "unsupported operations":
The text was updated successfully, but these errors were encountered: