Hacker News new | ask | show | jobs
by veber-alex 421 days ago
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.