Skip to content

Conversation

@mbyrnepr2
Copy link
Member

@mbyrnepr2 mbyrnepr2 commented Oct 12, 2025

Type of Changes

Type
βœ“ πŸ› Bug fix
✨ New feature
πŸ”¨ Refactoring
πŸ“œ Docs

Description

Exclude __all__ and __future__.annotations from unused-variable.

Closes #10019

@mbyrnepr2 mbyrnepr2 added this to the 4.1.0 milestone Oct 12, 2025
@mbyrnepr2 mbyrnepr2 added the False Positive 🦟 A message is emitted but nothing is wrong with the code label Oct 12, 2025
@codecov
Copy link

codecov bot commented Oct 12, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 95.96%. Comparing base (3de1fbc) to head (34ce09c).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10643   +/-   ##
=======================================
  Coverage   95.96%   95.96%           
=======================================
  Files         176      176           
  Lines       19502    19506    +4     
=======================================
+ Hits        18715    18719    +4     
  Misses        787      787           
Files with missing lines Coverage Ξ”
pylint/checkers/variables.py 97.15% <100.00%> (+<0.01%) ⬆️
πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

LGTM !

@github-actions

This comment has been minimized.

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
@github-actions
Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 34ce09c

@Pierre-Sassoulas Pierre-Sassoulas merged commit bbbdb9d into pylint-dev:main Oct 13, 2025
44 checks passed
pylint-backport bot pushed a commit that referenced this pull request Oct 13, 2025
cdce8p pushed a commit that referenced this pull request Oct 13, 2025
…h `__all__` or `__future__.annotations` (#10653)

Fix `unused-variable` false positive with `__all__` or `__future__.annotations` (#10643)

(cherry picked from commit bbbdb9d)

Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport maintenance/4.0.x False Positive 🦟 A message is emitted but nothing is wrong with the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't consider __future__ imports and __all__ unused

3 participants