Defaultdict skeleton update: T is unknown when the constructor is invoked so it won't be possible to check this type variable later.

This commit is contained in:
Semyon Proshev
2016-10-12 20:42:02 +03:00
parent dfa51b3715
commit dc9c608cda

View File

@@ -44,13 +44,13 @@ class defaultdict(dict):
def __init__(self, default_factory=None, **kwargs):
"""
:type default_factory: () -> V
:rtype: defaultdict[T, V]
:rtype: defaultdict[Any, V]
"""
pass
def __missing__(self, key):
"""
:type key: T
:type key: Any
:rtype: V
"""
pass