Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
wiz21c
8mo ago
0 comments
Save
Share
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 ?
0 comments
2 comments · 2 top-level
top
newest
oldest
yesb
8mo ago
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
8mo ago
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
j
/
k
navigate · click thread line to collapse