mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 20:12:08 +08:00
Allow NewType.__supertype__ to also be a NewType (#11728)
This commit is contained in:
@@ -290,7 +290,7 @@ if sys.version_info >= (3, 10):
|
||||
|
||||
def __or__(self, other: Any) -> _SpecialForm: ...
|
||||
def __ror__(self, other: Any) -> _SpecialForm: ...
|
||||
__supertype__: type
|
||||
__supertype__: type | NewType
|
||||
|
||||
else:
|
||||
def NewType(name: str, tp: Any) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user