mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 14:40:30 +08:00
Add @type_check_only to stub-only private classes in stdlib (#14512)
This commit is contained in:
@@ -419,6 +419,7 @@ def type_check_only(func_or_cls: _FT) -> _FT: ...
|
||||
|
||||
# Type aliases and type constructors
|
||||
|
||||
@type_check_only
|
||||
class _Alias:
|
||||
# Class for defining generic aliases for library types.
|
||||
def __getitem__(self, typeargs: Any) -> Any: ...
|
||||
@@ -1125,6 +1126,7 @@ if sys.version_info >= (3, 13):
|
||||
def is_protocol(tp: type, /) -> bool: ...
|
||||
def get_protocol_members(tp: type, /) -> frozenset[str]: ...
|
||||
@final
|
||||
@type_check_only
|
||||
class _NoDefaultType: ...
|
||||
|
||||
NoDefault: _NoDefaultType
|
||||
|
||||
Reference in New Issue
Block a user