Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python parameter with default value and type

def foo(opts: dict = {}):
    pass

print(foo.__annotations__)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #parameter #default #type
ADD COMMENT
Topic
Name
3+1 =