1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string
1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string
1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string
1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string
1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string
1def no_type_hint(arg):
2 print(arg) # arg can be anything
3
4def with_type_hint(arg: str):
5 print(arg) # arg must be a string or a subtype of string