Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myvar = 10 # type: int
- myvar = math.inf # <-- raises a typing error because math.inf is a float
- myvar = 10 # type: Union[int, float]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement