Enable --disallow-subclassing-any (#3591)

Closes: #1446
This commit is contained in:
Sebastian Rittau
2020-01-08 11:51:44 -08:00
committed by Jelle Zijlstra
parent 885c2fd65e
commit fdeae5d00e
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ class RepeatedCompositeFieldContainer(BaseContainer[_T]):
def __eq__(self, other: object) -> bool: ...
# Classes not yet typed
class Mapping(Any): ...
class Mapping(object):
def __getattr__(self, name: str) -> Any: ... # incomplete
class MutableMapping(Mapping): ...
class ScalarMap(MutableMapping): ...
class MessageMap(MutableMapping): ...