If I have a function like this:
def foo(name, opts={}): pass
And I want to add type hints to the parameters, how do I do it? The way I as
I recently saw this one-liner:
def foo(name: str, opts: dict=None) -> str: opts = {} if not opts else opts pass