-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make messages use builtin types instead of typing's types (#15070)
Adds a new option , `use_lowercase_builtins()`, to choose whether to report builtin types (`tuple`, `list`, `set`, `frozenset`) as the builtins instead of the uppercased versions in `typing`. This option is only set to `True` for python versions that are at least 3.9. Pipes options all the way through to the messages module. This work revealed a few places that types are printed with `str()` instead of using `format_type`, which has been changed. This does change reporting overall, though this should make messages more consistent. Adds a hidden flag `--force-uppercase-builtins` that sets the option to `True` regardless of python version. This allows us to have tests that are independent of version.
- Loading branch information
Showing
44 changed files
with
489 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.