Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

union type python

# Union typing can be used like this:
Union[int, str]

# In function defintion it would look like this:
def func(x: Union[int, str]) -> Union[int, str]:
	...
 
PREVIOUS NEXT
Tagged: #union #type #python
ADD COMMENT
Topic
Name
8+5 =