This is an archive of the discontinued Mercurial Phabricator instance.

import-checker: allow symbol imports from typing module
ClosedPublic

Authored by indygreg on Mar 9 2022, 8:07 PM.

Details

Summary

As we add typing annotations, we'll want to use a lot of symbols from
the typing module. Typing typing all the time will be annoying. Let's
allow symbol imports from this module.

While I was here, I changed some comments from "whitelist" to "allow list"
as the former is non-inclusive terminology.

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

indygreg created this revision.Mar 9 2022, 8:07 PM
Alphare accepted this revision.Mar 14 2022, 6:10 AM
This revision is now accepted and ready to land.Mar 14 2022, 6:10 AM
This revision was automatically updated to reflect the committed changes.