mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Drop Python 3.3 support from several stubs (#2265)
* Drop Python 3.3 support from several stubs * Revert wrong socketserver changes
This commit is contained in:
committed by
Jelle Zijlstra
parent
b05e99297c
commit
95eff73ab2
@@ -7,10 +7,7 @@ _FuncT = TypeVar('_FuncT', bound=Callable[..., Any])
|
||||
|
||||
# Thesee definitions have special processing in mypy
|
||||
class ABCMeta(type):
|
||||
if sys.version_info >= (3, 3):
|
||||
def register(cls: "ABCMeta", subclass: Type[_T]) -> Type[_T]: ...
|
||||
else:
|
||||
def register(cls: "ABCMeta", subclass: Type[Any]) -> None: ...
|
||||
def register(cls: "ABCMeta", subclass: Type[_T]) -> Type[_T]: ...
|
||||
|
||||
def abstractmethod(callable: _FuncT) -> _FuncT: ...
|
||||
class abstractproperty(property): ...
|
||||
@@ -18,7 +15,6 @@ class abstractproperty(property): ...
|
||||
def abstractstaticmethod(callable: _FuncT) -> _FuncT: ...
|
||||
def abstractclassmethod(callable: _FuncT) -> _FuncT: ...
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
class ABC(metaclass=ABCMeta):
|
||||
pass
|
||||
def get_cache_token() -> object: ...
|
||||
class ABC(metaclass=ABCMeta):
|
||||
pass
|
||||
def get_cache_token() -> object: ...
|
||||
|
||||
Reference in New Issue
Block a user