Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aitchnyu
on Aug 11, 2023
|
parent
|
context
|
favorite
| on:
Mypy 1.5 Released
Tangential, but is there a way to annotate an expression as non-nullable? In TS we have `expression!`, but in Python we have to `assert var is not None` after `var = fn_that_returns_str_or_none`.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: