DEV Community

Discussion on: Using Python's Type Annotations

Collapse
 
abhyvyth profile image
abhyvyth

Hi!

What do I do if my dictionary can have values of multiple types?

Dict[str, Any] is throwing this error: Implicit generic "Any". Use "typing.List" and specify generic parameters