mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import SupportsWrite
|
||||
from typing import Any, Callable, Type, TypeVar
|
||||
from typing import Any, Callable, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_FuncT = TypeVar("_FuncT", bound=Callable[..., Any])
|
||||
@@ -12,7 +12,7 @@ class ABCMeta(type):
|
||||
def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...
|
||||
def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...
|
||||
def _dump_registry(cls: ABCMeta, file: SupportsWrite[str] | None = ...) -> None: ...
|
||||
def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...
|
||||
def register(cls: ABCMeta, subclass: type[_T]) -> type[_T]: ...
|
||||
|
||||
def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
|
||||
|
||||
@@ -27,4 +27,4 @@ class ABC(metaclass=ABCMeta): ...
|
||||
def get_cache_token() -> object: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def update_abstractmethods(cls: Type[_T]) -> Type[_T]: ...
|
||||
def update_abstractmethods(cls: type[_T]) -> type[_T]: ...
|
||||
|
||||
Reference in New Issue
Block a user