Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix no-name-in-module when variable is same as module name #8169

Merged

Conversation

clavedeluna
Copy link
Contributor

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #8148

I was able to reproduce the original issue FP but also came up with a non-lib specific example that raised this issue.

@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #8169 (71dba00) into main (588c837) will decrease coverage by 0.09%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8169      +/-   ##
==========================================
- Coverage   95.53%   95.44%   -0.09%     
==========================================
  Files         177      177              
  Lines       18622    18635      +13     
==========================================
- Hits        17791    17787       -4     
- Misses        831      848      +17     
Impacted Files Coverage Ξ”
pylint/checkers/variables.py 97.30% <ΓΈ> (-0.08%) ⬇️
pylint/testutils/_primer/package_to_lint.py 76.81% <0.00%> (-23.19%) ⬇️
pylint/checkers/base/basic_checker.py 97.87% <0.00%> (-0.03%) ⬇️
pylint/checkers/base/basic_error_checker.py 95.51% <0.00%> (ΓΈ)

@clavedeluna
Copy link
Contributor Author

the coverage report doesn't make that much sense (must be indirect coverage)

@Pierre-Sassoulas Pierre-Sassoulas added the False Positive 🦟 A message is emitted but nothing is wrong with the code label Feb 2, 2023
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.16.1 milestone Feb 2, 2023
@github-actions

This comment has been minimized.

@Pierre-Sassoulas Pierre-Sassoulas modified the milestones: 2.16.1, 2.16.2 Feb 2, 2023
tests/test_self.py Outdated Show resolved Hide resolved
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2023

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

This comment was generated for commit 71dba00

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.

Very nice, I like when the actual fix is a single line modification and there's twenty times more tests and doc πŸ˜„ !

@Pierre-Sassoulas Pierre-Sassoulas merged commit f690448 into pylint-dev:main Feb 7, 2023
github-actions bot pushed a commit that referenced this pull request Feb 7, 2023
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
(cherry picked from commit f690448)
Pierre-Sassoulas pushed a commit that referenced this pull request Feb 7, 2023
…8226)

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
(cherry picked from commit f690448)

Co-authored-by: Dani Alcala <112832187+clavedeluna@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
2 participants