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

Handle properties in dataclasses correctly #1897

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

DanielNoord
Copy link
Collaborator

Steps

  • For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • Write a good description on what the PR does.

Description

Closes pylint-dev/pylint#5225

I intend to create some fixes for dataclasses in astroid. I think it makes sense to do a patch release for them as they are small but useful fixes for a feature that gets used more and more.
This is also out of self interest: I ran into this at my job 😅

Type of Changes

Type
🐛 Bug fix

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.

LGTM, but my astroid knowledge is lacking.

Comment on lines +19 to +21
What's New in astroid 2.12.14?
==============================
Release date: TBA
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
What's New in astroid 2.12.14?
==============================
Release date: TBA

Let's release this in 2.13.0. #1189 is almost done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would you be okay with me doing a patch release myself? I created quite a bit of regressions (and fixes) with the dataclass refactor. I'd like to get these out quickly as I depend on them in my day-to-day.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, might be the occasion to add the backporting github action to astroid.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll leave that decision to you. This one should be fairly trivial to backport.

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Dec 6, 2022
@DanielNoord DanielNoord modified the milestones: 2.13.0, 2.12.14 Dec 7, 2022
@DanielNoord DanielNoord merged commit 0bc160f into pylint-dev:main Dec 7, 2022
@DanielNoord DanielNoord deleted the dataclasses/properties branch December 7, 2022 07:53
@cdce8p cdce8p added the backported Assigned once the backport is done label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Assigned once the backport is done dataclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(no-value-for-parameter) on dataclass field attribute C0114
3 participants