( )⚙ D11719 typing: add more type hints to the errors module

This is an archive of the discontinued Mercurial Phabricator instance.

typing: add more type hints to the errors module
ClosedPublic

Authored by mharbison72 on Oct 23 2021, 6:41 PM.

Details

Summary

These were found by looking for Any types in the generated *.pyi file after
running the tests. There are some more complicated types that I'm not sure of,
and am leaving untyped. I also can't figure out how to get self.hint to be
anything other than Any in most classes.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

mharbison72 created this revision.Oct 23 2021, 6:41 PM
Alphare accepted this revision.Oct 26 2021, 4:37 AM
This revision is now accepted and ready to land.Oct 26 2021, 4:37 AM
This revision was automatically updated to reflect the committed changes.