Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: