python default param value and type code example
Example 1: python function parameters default value
def F(a, b=None):
if b is None:
b = []
b.append(a)
return b
Example 2: python 3 define type in arguments with default value
def foo(opts: dict = {}):
pass
print(foo.__annotations__)