Viewing profile — qwefsdf
qwefsdf
HN member- Joined
- Thu, Dec 08, 2022, 9:45 PM UTC
- HN karma
- 25
- Public activity
- 3 items
- HN profile
- View on Hacker News ↗
About qwefsdf
No profile information was provided.
Recent public activity
-
comment
Comment #33927506
With type hints you would model this as a Union type, i.e., Union[int, str]. This is perfectly legal with mypy and other Python type checkers.
-
comment
Comment #33927500
That's an Optional[int]. It's not "mixed types", it's a union type.
-
comment
Comment #33914025
Anybody claiming it's almost Python is kidding themselves. This compiler needs to do static type checking. This is inherently impossible in Python. Not just because of some obscure…