Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wiz21c
6 months ago
|
parent
|
context
|
favorite
| on:
Pyrefly: Python type checker and language server i...
isn't it perfectly valid to pass None to that function ? It's not like python enforces types at runtime nor at compile time. Right ?
yesb
6 months ago
|
next
[–]
Sure, it's valid python to do that. By that logic you could also pass an int. But the context of this post is that you're using a static type checker.
Austizzle
6 months ago
|
prev
[–]
It's not valid from a typing perspective, but python will let you. If you want to disregard types though then none of this matters anyway and you won't get much benefit from these tools
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: