-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Right now bool has this __new__ signature: def __new__(cls: Type[_T], __o: object = ...) -> _T: ...
Should not it be:
@overload
def __new__(cls) -> Literal[False]: ...
@overload
def __new__(cls: Type[_T], __o: object) -> _T: ...?
Current source:
Line 676 in 2217ac8
| def __new__(cls: Type[_T], __o: object = ...) -> _T: ... |
What do you think?
Metadata
Metadata
Assignees
Labels
No labels