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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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.