default argument with type hint python code example Example: default argument with type hint python def foo(opts: dict = {}): pass print(foo.__annotations__)