What is the difference between using list and List when defining for example the argument of a function in python3? For example, what is the difference between
def do_something(vars: list):
and
def do_something(vars: List):
The documentation says:
class typing.List(list, MutableSequence[T])
Generic version of list. Useful for annotating return types.
but I'm not entirely sure what the above means.
I have similar questions for: dict vs Dict, set vs Set, etc.