Move ellipsis definition to types (#11223)

This commit is contained in:
Shantanu
2024-01-02 16:14:53 -08:00
committed by GitHub
parent 6aa6722fe1
commit 6fcd37456d
2 changed files with 12 additions and 5 deletions

View File

@@ -626,7 +626,10 @@ if sys.version_info >= (3, 10):
@final
class NoneType:
def __bool__(self) -> Literal[False]: ...
EllipsisType = ellipsis # noqa: F821 from builtins
@final
class EllipsisType: ...
from builtins import _NotImplementedType
NotImplementedType = _NotImplementedType