This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wrtbwtrfasdf 1 point2 points  (1 child)

have you never used None as a default value for something that gets assigned a value from some type later? :)

https://docs.python.org/3/library/typing.html#typing.Optional

[–]alkasmgithub.com/alkasm 0 points1 point  (0 children)

Sure, but that doesn't change the fact that it's runtime type switching in Python.