Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
Infer empty list without annotation for__slots__ and module__all__#19348
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
JukkaL merged 7 commits intopython:masterfromsterliakov:feature/gh-10870-infer-slots-empty-listJul 9, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
6bf8602 Allow empty list as `__slots__` without annotation
sterliakovcdc2573 Limit to class-level __slots__
sterliakov84b8849 Apply same treatment to __all__
sterliakov3139f49 Address review comments: restrict `__all__` to Sequence
sterliakove083e5c Add explicit test with Iterable that is not a Sequence for `__all__`
sterliakov585bc15 Add set testcase
sterliakov3117300 Merge branch 'master' into feature/gh-10870-infer-slots-empty-list
sterliakovFile 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
PrevPrevious commit
Merge branch 'master' into feature/gh-10870-infer-slots-empty-list
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit31173003c4ff931b7337d6b648b8f73d6e6978a2
There are no files selected for viewing
This merge commit was added into this branch cleanly.
There are no new changes to show, but you can stillview the diff.
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.