Skip to content

Apply const-naming-style to module const annotated with Final #4280

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

Merged
merged 1 commit into from
Apr 3, 2021
Merged

Apply const-naming-style to module const annotated with Final #4280

merged 1 commit into from
Apr 3, 2021

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Apr 1, 2021

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

This depends on #4279 and should be rebased once it's merged.

Apply the const-naming-style to module constants if they are annotated with with typing.Final.

Type of Changes

Type
✨ New feature

@coveralls
Copy link

coveralls commented Apr 1, 2021

Coverage Status

Coverage increased (+0.001%) to 91.457% when pulling f35bb24 on cdce8p:use-final-module-const into 44a3aa2 on PyCQA:master.

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.7.5 milestone Apr 1, 2021
@cdce8p
Copy link
Member Author

cdce8p commented Apr 1, 2021

I rebased this one and it is ready for review.

Comment on lines +12 to +13
* Apply ``const-naming-style`` to module constants annotated with
``typing.Final``
Copy link
Member Author

@cdce8p cdce8p Apr 1, 2021

Choose a reason for hiding this comment

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

Should it be a 2.8 or a 2.7.5 feature?

Copy link
Member

Choose a reason for hiding this comment

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

Depends on the end result of the discussion in #4263 :)

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Apr 1, 2021
@Pierre-Sassoulas Pierre-Sassoulas merged commit 8b3b8e2 into pylint-dev:master Apr 3, 2021
@cdce8p cdce8p deleted the use-final-module-const branch April 3, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants