Skip to content

Commit 7fbf66a

Browse files
committed
Make types.NoneType actually the type of None, instead of just some unrelated class.
1 parent 55cf343 commit 7fbf66a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/types.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ if sys.version_info >= (3, 9):
379379
def __getattr__(self, name: str) -> Any: ... # incomplete
380380

381381
if sys.version_info >= (3, 10):
382-
@final
383-
class NoneType:
384-
def __bool__(self) -> Literal[False]: ...
382+
NoneType = type(None)
385383
EllipsisType = ellipsis # noqa F811 from builtins
386384
from builtins import _NotImplementedType
387385

0 commit comments

Comments
 (0)