mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 11:07:17 +08:00
Mark pos-only __class_getitem__ args (#11970)
This commit is contained in:
@@ -570,7 +570,7 @@ class Pattern(Generic[AnyStr]):
|
||||
def __copy__(self) -> Self: ...
|
||||
def __deepcopy__(self) -> Self: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
@final
|
||||
class Match(Generic[AnyStr]):
|
||||
@@ -649,4 +649,4 @@ class Match(Generic[AnyStr]):
|
||||
def __copy__(self) -> Self: ...
|
||||
def __deepcopy__(self) -> Self: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
||||
|
||||
Reference in New Issue
Block a user