Vladimir

26%
Flag icon
Union is more useful with types that are not consistent among themselves. For example: Union[int, float] is redundant because int is consistent-with float. If you just use float to annotate the parameter, it will accept int values as well.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview