mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
PEP 604: Add or operator to class type (#5151)
Co-authored-by: andrey.matveev <andrey.matveev@jetbrains.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
import types
|
||||
from _typeshed import (
|
||||
AnyPath,
|
||||
OpenBinaryMode,
|
||||
@@ -156,6 +157,8 @@ class type(object):
|
||||
def __subclasscheck__(self, subclass: type) -> bool: ...
|
||||
@classmethod
|
||||
def __prepare__(metacls, __name: str, __bases: Tuple[type, ...], **kwds: Any) -> Mapping[str, Any]: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def __or__(self, t: Any) -> types.Union: ...
|
||||
|
||||
class super(object):
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user