Fix decorator frame
This partially fixes pylint-dev/pylint#8425. The additional changes should likely be done in pylint itself.
This does impact the test output for pylint a bit as errors on decorators no longer belong to the function / class now. Not sure that can be avoided though. In any case, I think it's better to do this in 4.1.0 and not in a bugfix release.
Codecov Report
:x: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 93.37%. Comparing base (4448906) to head (9684a0b).
:warning: Report is 8 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| astroid/nodes/node_classes.py | 66.66% | 2 Missing :warning: |
:x: Your patch check has failed because the patch coverage (66.66%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.
Additional details and impacted files
@@ Coverage Diff @@
## main #2901 +/- ##
==========================================
- Coverage 93.39% 93.37% -0.02%
==========================================
Files 92 92
Lines 11214 11220 +6
==========================================
+ Hits 10473 10477 +4
- Misses 741 743 +2
| Flag | Coverage Δ | |
|---|---|---|
| linux | 93.24% <66.66%> (-0.02%) |
:arrow_down: |
| pypy | 93.37% <66.66%> (-0.02%) |
:arrow_down: |
| windows | 93.36% <66.66%> (-0.02%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Files with missing lines | Coverage Δ | |
|---|---|---|
| astroid/nodes/node_classes.py | 94.93% <66.66%> (-0.09%) |
:arrow_down: |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.