Skip to content

improve coverage for __all__ handling - #895

Merged
asottile merged 1 commit into
mainfrom
better-coverage-for-all
Sep 22, 2026
Merged

asottile merged 1 commit into
mainfrom
better-coverage-for-all

Conversation

@asottile

Copy link
Copy Markdown
Member

No description provided.

Comment on lines +1104 to +1108
def test_ignores_multi_concatenated_assignment_with_var(self):
self.flakes('''
x = ['this_is_not_visible']
__all__ = ['this_is_also_not_visible'] + x + ['b']
''', m.UndefinedExport)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is arguably a bug -- it should probably handle each list in here since it "sorta" knows statically those values

but for now I'm just adding test coverage for the current code

@asottile
asottile enabled auto-merge (squash) September 22, 2026 20:34
@asottile
asottile merged commit 5ef97ef into main Sep 22, 2026
12 checks passed
@asottile
asottile deleted the better-coverage-for-all branch September 22, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant