Remove all mention of 'module' from typeshed. (#1156)

This depends on python/mypy#3107.
This commit is contained in:
Guido van Rossum
2017-04-13 08:40:52 -07:00
committed by Jelle Zijlstra
parent f543ddd89a
commit 359c8cc313
7 changed files with 6 additions and 25 deletions

View File

@@ -1,11 +1,7 @@
from typing import Any, Dict, Set, Tuple, Type
import _weakrefset
# mypy has special processing for ABCMeta and abstractmethod.
WeakSet = ... # type: _weakrefset.WeakSet
_InstanceType = ... # type: type
types = ... # type: module
# NOTE: mypy has special processing for ABCMeta and abstractmethod.
def abstractmethod(funcobj: Any) -> Any: ...
@@ -23,9 +19,6 @@ class ABCMeta(type):
def _dump_registry(cls: "ABCMeta", *args: Any, **kwargs: Any) -> None: ...
def register(cls: "ABCMeta", subclass: Type[Any]) -> None: ...
class _C:
pass
# TODO: The real abc.abstractproperty inherits from "property".
class abstractproperty(object):
def __new__(cls, func: Any) -> Any: ...