-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pyupgrade to update Python syntax used (#2043)
* Automatic Changes Implemented by running pyupgrade --py38-plus on individual files: - Use fstrings where reasonable - replace use of really old % format specifier - removal of coding: utf-8 comment (it's the default encoding) - drop unnecessary Object argument from base class declarations - delete leading u from unicode-literals (python 3 strings support unicode characters) - delete unnecessary index arguments to {} for strings where we continue to use .format - pyupgrade is timid about f-string usage in order to maintain short and readable code - Use dict comprehension rather than whatever we were doing in nifake/unit_tests/test_grpc.py - delete unnecessary arguments from open() calls - Use set comprehension in metadata_add_all.py Discarded changes to test_converters.py. I believe we're not passing the right arguments for some tuple tests * tox -e codegen In addition to reflecting the changes in the previous commit, the copyright date in conf.py was updated to include 2024.
- Loading branch information
1 parent
7a5681e
commit b399fea
Showing
117 changed files
with
559 additions
and
581 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
Large diffs are not rendered by default.
Oops, something went wrong.
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.