default argument with type hint python

Solutions on MaxInterview for default argument with type hint python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "default argument with type hint python"
Silvana
11 Jan 2021
1def foo(opts: dict = {}):
2    pass
3
4print(foo.__annotations__)
5