File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1163,7 +1163,12 @@ class property(object):
11631163if sys .version_info < (3 ,):
11641164 long = int
11651165
1166- NotImplemented : Any
1166+ class _NotImplementedType (Any ): # type: ignore
1167+ # A little weird, but typing the __call__ as NotImplemented makes the error message
1168+ # for NotImplemented() much better
1169+ __call__ : NotImplemented # type: ignore
1170+
1171+ NotImplemented : _NotImplementedType
11671172
11681173def abs (__x : SupportsAbs [_T ]) -> _T : ...
11691174def all (__iterable : Iterable [object ]) -> bool : ...
Original file line number Diff line number Diff line change @@ -1163,7 +1163,12 @@ class property(object):
11631163if sys .version_info < (3 ,):
11641164 long = int
11651165
1166- NotImplemented : Any
1166+ class _NotImplementedType (Any ): # type: ignore
1167+ # A little weird, but typing the __call__ as NotImplemented makes the error message
1168+ # for NotImplemented() much better
1169+ __call__ : NotImplemented # type: ignore
1170+
1171+ NotImplemented : _NotImplementedType
11671172
11681173def abs (__x : SupportsAbs [_T ]) -> _T : ...
11691174def all (__iterable : Iterable [object ]) -> bool : ...
You can’t perform that action at this time.
0 commit comments