Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG2ade00f3b03b: encoding: add comment-based type hints for pytype
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
mercurial/encoding.py | ||
---|---|---|
24 | Am I missing something here? Won't globals() always return a dict with elements? And isn't typing only available on Python 3? |
mercurial/encoding.py | ||
---|---|---|
24 | This is a moderately bonkers way to write if False that pyflakes won't complain about and pytype won't be able to elide, so we can have pytype-only imports in the file to make the type annotation comments work. |
Am I missing something here? Won't globals() always return a dict with elements? And isn't typing only available on Python 3?