That's a mypy issue.
Pyright correctly deduces the type as int.
In any case it's a bad example as function signatures should always be typed.
Pyright correctly deduces the type as int.
In any case it's a bad example as function signatures should always be typed.
No comments yet.