mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Remove all mention of 'module' from typeshed. (#1156)
This depends on python/mypy#3107.
This commit is contained in:
committed by
Jelle Zijlstra
parent
f543ddd89a
commit
359c8cc313
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user