Replace bool.__init__() with __new__() (#4614)

Fixes #4612
This commit is contained in:
Sebastian Rittau
2020-10-09 00:20:03 +02:00
committed by GitHub
parent fa0ba1eda8
commit 35f4ade96f
2 changed files with 2 additions and 2 deletions

View File

@@ -871,7 +871,7 @@ class memoryview(Sized, Container[_mv_container_type]):
def hex(self) -> str: ...
class bool(int):
def __init__(self, o: object = ...) -> None: ...
def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
@overload
def __and__(self, x: bool) -> bool: ...
@overload