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

add the parent node to "__main__" #2551

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

temyurchenko
Copy link
Contributor

Not having a parent leads to weird situations, like root() returning
the node itself, not a Module.

Type of Changes

Type
βœ“ πŸ› Bug fix

Not having a parent leads to weird situations, like `root()` returning
   the node itself, not a `Module`.
@temyurchenko
Copy link
Contributor Author

split out of #2536

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 92.98%. Comparing base (78f7f60) to head (02fa714).
Report is 12 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2551      +/-   ##
==========================================
- Coverage   92.98%   92.98%   -0.01%     
==========================================
  Files          93       93              
  Lines       11048    11083      +35     
==========================================
+ Hits        10273    10305      +32     
- Misses        775      778       +3     
Flag Coverage Ξ”
linux 92.86% <100.00%> (+<0.01%) ⬆️
pypy 92.98% <100.00%> (-0.01%) ⬇️
windows 92.96% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Ξ”
astroid/nodes/scoped_nodes/scoped_nodes.py 92.80% <100.00%> (+0.01%) ⬆️

... and 37 files with indirect coverage changes

@DanielNoord DanielNoord merged commit 0011e7f into pylint-dev:main Sep 9, 2024
20 checks passed
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.

2 participants