-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Exclude unassigned type-annotated class attributes from enum __members__ container #2263
Exclude unassigned type-annotated class attributes from enum __members__ container #2263
Conversation
β¦, from the ``__members__`` container of an ``Enum`` class. Refs pylint-dev/pylint#7402
for more information, see https://pre-commit.ci
The value if now `Uninferable` in the case of an annotated attribute of an `enum.Enum` class with no assigned value.
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
These attributes cannot be none in real-world situations, see python/cpython#106145.
Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES) - [Commits](sphinx-doc/sphinx@v7.0.0...v7.1.1) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2263 +/- ##
=======================================
Coverage 92.78% 92.78%
=======================================
Files 94 94
Lines 10951 10953 +2
=======================================
+ Hits 10161 10163 +2
Misses 790 790
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's backport this :)
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-maintenance/2.15.x maintenance/2.15.x
# Navigate to the new working tree
cd .worktrees/backport-maintenance/2.15.x
# Create a new branch
git switch --create backport-2263-to-maintenance/2.15.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 63cd8a1752f01391956f94cfde0c49de44f3726f
# Push it to GitHub
git push --set-upstream origin backport-2263-to-maintenance/2.15.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-maintenance/2.15.x Then, create a pull request where the |
Type of Changes
Description
Exclude type-annotated class attributes, which have no assigned value, from the
__members__
container of anEnum
class.pylint-dev/pylint#7402