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
{{ message }}
Repository navigation
[spec] Document NotImplemented special casing? #2109
I am not aware of a case where treating NotImplemented as Any is really useful, and recently opened python/mypy#20114 to remove this special casing from Mypy. An idea is to use NotImplemented / NotImplementedType to specify the behaviour of binary operators as discussed in #1548.
Activity
tyralla commentedon Nov 7, 2025
I am not aware of a case where treating
NotImplementedasAnyis really useful, and recently opened python/mypy#20114 to remove this special casing from Mypy. An idea is to useNotImplemented/NotImplementedTypeto specify the behaviour of binary operators as discussed in #1548.