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

Remove restore_path() decorator #2318

Closed

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Oct 14, 2023

Type of Changes

Type
🐛 Bug fix

Description

Reverts 0d4f73d.
Refs pylint-dev/pylint#9138: reduces number of unraisable ValueError exceptions in the python 3.12 pylint primer from 3 to 1. (see result) (EDIT: turns out this "result" is a little indeterminate, though...)

There's been churn around this decorator before, but I'm in favor of removing some indirection.

@jacobtylerwalls jacobtylerwalls added the pylint-tested PRs that don't cause major regressions with pylint label Oct 14, 2023
@jacobtylerwalls jacobtylerwalls changed the title [WIP] Remove restore_path() decorator Remove restore_path() decorator Oct 14, 2023
@codecov
Copy link

codecov bot commented Oct 14, 2023

Codecov Report

Merging #2318 (ececf57) into main (46ed374) will decrease coverage by 0.01%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2318      +/-   ##
==========================================
- Coverage   92.85%   92.84%   -0.01%     
==========================================
  Files          94       94              
  Lines       11056    11048       -8     
==========================================
- Hits        10266    10258       -8     
  Misses        790      790              
Flag Coverage Δ
linux 92.65% <100.00%> (-0.01%) ⬇️
pypy 90.99% <100.00%> (-0.01%) ⬇️
windows 92.44% <100.00%> (-0.01%) ⬇️

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

Files Coverage Δ
astroid/context.py 97.22% <ø> (-0.25%) ⬇️
astroid/nodes/scoped_nodes/scoped_nodes.py 92.47% <100.00%> (-0.01%) ⬇️

@jacobtylerwalls
Copy link
Member Author

Some tests to adjust on Python <=3.9, but otherwise primer result looks reasonable. Still have one unraisable exception though.

@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review October 14, 2023 22:13
@jacobtylerwalls jacobtylerwalls added this to the 3.1.0 milestone Oct 15, 2023
@jacobtylerwalls
Copy link
Member Author

Thanks for the review. I'm going to put this one on hold for now; I might want to go in a different direction if I'm able to narrow down why the pylint primer is so noisy.

@jacobtylerwalls jacobtylerwalls marked this pull request as draft October 29, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pylint-tested PRs that don't cause major regressions with pylint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants