Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python specify multiple possible types

from typing import Union

def foo(client_id: str) -> Union[list,bool]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #multiple #types
ADD COMMENT
Topic
Name
4+3 =