Type hint for key value pair list?

Viewed 340

I'm fairly new to python and creating types using python. Still wrapping my head around it.

I'm trying to come up with a way of defining a key value pair list using typings.

the structure I'm talking about is:

[{'key1':'value1'},{'key2','value2'},...]

The best I could come up with is:

List[Dict[str,str]]

But I'm sure this is wrong.

0 Answers
Related