mirror of
https://github.com/davidhalter/jedi.git
synced 2026-03-06 05:34:17 +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):
|
class Dict(MutableMapping, dict):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class DefaultDict(MutableMapping, dict):
|
||||||
|
pass
|
||||||
|
|
||||||
dct = {
|
dct = {
|
||||||
"Sequence": Sequence,
|
"Sequence": Sequence,
|
||||||
"MutableSequence": MutableSequence,
|
"MutableSequence": MutableSequence,
|
||||||
@@ -96,5 +99,6 @@ def factory(typing_name, indextypes):
|
|||||||
"ItemsView": ItemsView,
|
"ItemsView": ItemsView,
|
||||||
"ValuesView": ValuesView,
|
"ValuesView": ValuesView,
|
||||||
"Dict": Dict,
|
"Dict": Dict,
|
||||||
|
"DefaultDict": DefaultDict,
|
||||||
}
|
}
|
||||||
return dct[typing_name]
|
return dct[typing_name]
|
||||||
|
|||||||
Reference in New Issue
Block a user