mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
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:
committed by
David Fisher
parent
679a6e5669
commit
3855e7023f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user