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:
Sebastian Rittau
2018-06-21 01:49:47 +02:00
committed by Jelle Zijlstra
parent b05e99297c
commit 95eff73ab2
11 changed files with 138 additions and 296 deletions

View File

@@ -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: ...