|
|
|
|
|
by rfoo
422 days ago
|
|
`Any` is the correct call. It could be: def f(i=0) -> None:
if i is None:
do_something()
else:
do_something_else()
Yeah, I know it's retarded. I don't expect high quality code in a code base missing type annotation like that. Assuming `i` is `int` or `float` just makes incrementally adoption of a type checker harder. |
|