https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-breakfast-49010

10/21/2020, 1:20 AM
how do you specify the type of an
OrderedDict
in python3.6? https://docs.python.org/3.7/library/typing.html#typing.OrderedDict was only added in 3.7
h

hundreds-father-404

10/21/2020, 1:39 AM
There’s no need for OrderedDict. Dictionaries are already insertion ordered
f

flat-zoo-31952

10/21/2020, 11:13 AM
they still are slightly different, so you can use
typing.MutableMapping
to put in types for `OrderedDict`s if you need it