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

Clean up tests that had min_pyver=3.8 test setting #8811

Merged
merged 3 commits into from
Jul 3, 2023

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

Follow-up to #8792.

Closes #6306

@jacobtylerwalls jacobtylerwalls added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Jul 1, 2023
@jacobtylerwalls jacobtylerwalls added this to the 3.0.0a7 milestone Jul 1, 2023
@jacobtylerwalls jacobtylerwalls requested a review from cdce8p as a code owner July 1, 2023 16:56
Comment on lines -386 to -388
- Fix ``used-before-assignment`` for functions/classes defined in type checking guard.

Closes #7368 (`#7368 <https://github.com/pylint-dev/pylint/issues/7368>`_)
Copy link
Member Author

@jacobtylerwalls jacobtylerwalls Jul 1, 2023

Choose a reason for hiding this comment

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

Other cleanup 1: this was given twice, see above under 2.15.2.

or not isinstance(node.args[0], nodes.Name)
or not isinstance(node.args[1], nodes.Name)
or node_frame_class(node) is None
# TODO: PY38: Use walrus operator, this will also fix the mypy issue
Copy link
Member Author

Choose a reason for hiding this comment

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

Other cleanup 2: resolve this TODO

@codecov
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #8811 (90459ef) into main (1da5183) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8811   +/-   ##
=======================================
  Coverage   95.89%   95.89%           
=======================================
  Files         173      173           
  Lines       18510    18511    +1     
=======================================
+ Hits        17750    17751    +1     
  Misses        760      760           
Impacted Files Coverage Ξ”
pylint/checkers/refactoring/refactoring_checker.py 98.23% <ΓΈ> (ΓΈ)

... and 1 file with indirect coverage changes

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.

Look great already ! Shouldn't we add py-version instead of removing rc file when the py-version is not already set ?

@Pierre-Sassoulas
Copy link
Member

Need a rebase for the primer to work ?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2023

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

This comment was generated for commit 90459ef

@jacobtylerwalls jacobtylerwalls merged commit 2e3798a into pylint-dev:main Jul 3, 2023
@jacobtylerwalls jacobtylerwalls deleted the more-cleanups branch July 3, 2023 13:50
@jacobtylerwalls jacobtylerwalls removed the request for review from cdce8p July 3, 2023 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cleanup after we drop support for Python 3.7
2 participants