mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-16 00:46:43 +08:00
Add support for DefaultDict on jedi_typing.py.
This commit is contained in:
committed by
Dave Halter
parent
ff4a77391a
commit
55941e506b
@@ -81,6 +81,9 @@ def factory(typing_name, indextypes):
|
||||
class Dict(MutableMapping, dict):
|
||||
pass
|
||||
|
||||
class DefaultDict(MutableMapping, dict):
|
||||
pass
|
||||
|
||||
dct = {
|
||||
"Sequence": Sequence,
|
||||
"MutableSequence": MutableSequence,
|
||||
@@ -96,5 +99,6 @@ def factory(typing_name, indextypes):
|
||||
"ItemsView": ItemsView,
|
||||
"ValuesView": ValuesView,
|
||||
"Dict": Dict,
|
||||
"DefaultDict": DefaultDict,
|
||||
}
|
||||
return dct[typing_name]
|
||||
|
||||
Reference in New Issue
Block a user