Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork965
Replace all wildcard imports with explicit imports#1880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
34 commits Select commitHold shift + click to select a range
1e5a944 Add a script to validate refactored imports
EliahKagan5b2771d Add regression tests of the git.util aliasing situation
EliahKaganfc86a23 Incompletely change git.index imports to test modattrs.py
EliahKagan4badc19 Fix git.index imports
EliahKagan1c9bda2 Improve relative order of import groups, and __all__, in git.index
EliahKagan8b51af3 Improve order of imports and __all__ in git.refs submodules
EliahKaganb25dd7e Replace wildcard imports in git.refs
EliahKaganb32ef65 Improve order of imports and __all__ in git.repo submodules
EliahKagan0ba06e9 Add git.repo.__all__ and make submodules explicit
EliahKaganc946906 Improve order of imports and __all__ in git.objects.*
EliahKagan4e9a2f2 Improve order of imports and __all__ in git.object.submodule.*
EliahKaganc58be4c Remove a bit of old commented-out code in git.objects.*
EliahKagan01c95eb Don't patch IndexObject and Object into git.objects.submodule.util
EliahKaganf89d065 Fix git.objects.__all__ and make submodules explicit
EliahKagan3786307 Make git.objects.util module docstring more specific
EliahKagande540b7 Add __all__ and imports in git.objects.submodule
EliahKagana05597a Improve how imports and __all__ are written in git.util
EliahKagan2053a3d Remove old commented-out change_type assertions in git.diff
EliahKaganb8bab43 Remove old commented-out flagKeyLiteral assertions in git.remote
EliahKagan3d4e476 Improve how second-level imports and __all__ are written
EliahKagan6318eea Make F401 "unused import" suppressions more specific
EliahKagan31bc8a4 Remove unneeded F401 "Unused import" suppressions
EliahKaganabbe74d Fix a tiny import sorting nit
EliahKagan7745250 Replace wildcard imports in top-level git module
EliahKagan64c9efd Restore relative order to fix circular import error
EliahKagan31f89a1 Add the nonpublic indirect submodule aliases back for now
EliahKagan9bbbcb5 Further improve git.objects.util module docstring
EliahKagan00f4cbc Add missing submodule imports in git.objects
EliahKaganfcc7418 Don't explicitly list direct submodules in __all__
EliahKagan78055a8 Pick a consistent type for __all__ (for now, list)
EliahKaganecdb6aa Save diff of non-__all__ attributes across import changes
EliahKaganf705fd6 Remove modattrs.py and related
EliahKagan4a4d880 Improve test suite import grouping/sorting, __all__ placement
EliahKagand524c76 Fix slightly unsorted imports in setup.py
EliahKaganFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
114 changes: 97 additions & 17 deletionsgit/__init__.py
This file contains hidden or 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
15 changes: 7 additions & 8 deletionsgit/cmd.py
This file contains hidden or 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
14 changes: 7 additions & 7 deletionsgit/compat.py
This file contains hidden or 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
7 changes: 4 additions & 3 deletionsgit/config.py
This file contains hidden or 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
13 changes: 6 additions & 7 deletionsgit/db.py
This file contains hidden or 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
30 changes: 11 additions & 19 deletionsgit/diff.py
This file contains hidden or 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
4 changes: 3 additions & 1 deletiongit/exc.py
This file contains hidden or 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
13 changes: 11 additions & 2 deletionsgit/index/__init__.py
This file contains hidden or 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.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.