Ignore a stub class that extends Any (#745)

Ignore a stub class that extends Any so that programs can use `--disallow-subclassing-any`.
This commit is contained in:
Danny Weinberg
2016-12-05 14:30:14 -08:00
committed by David Fisher
parent 679a6e5669
commit 3855e7023f

View File

@@ -68,7 +68,8 @@ class MappingProxyType(Mapping[_KT, _VT], Generic[_KT, _VT]):
def __iter__(self) -> Iterator[_KT]: ...
def __len__(self) -> int: ...
class SimpleNamespace(Any): ...
# TODO: use __getattr__ and __setattr__ instead of inheriting from Any, pending mypy#521.
class SimpleNamespace(Any): ... # type: ignore
class GeneratorType:
gi_code = ... # type: CodeType