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

[1.1 backport] [dataclass_transform] detect transform spec changes in incremental mode (#14695) #14768

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Feb 23, 2023

Adds support for triggering rechecking of downstream classes when @dataclass_transform is added or removed from a function/class, as well as when parameters to dataclass_transform are updated. These changes aren't propagated normally since they don't change the type signature of the dataclass_transform decorator.

Also adds new a new find-grained-dataclass-transform.test file to test the new logic.

(cherry picked from commit 29bcc7f)

… incremental mode (python#14695)

Adds support for triggering rechecking of downstream classes when
`@dataclass_transform` is added or removed from a function/class, as
well as when parameters to `dataclass_transform` are updated. These
changes aren't propagated normally since they don't change the type
signature of the `dataclass_transform` decorator.

Also adds new a new `find-grained-dataclass-transform.test` file to test
the new logic.

(cherry picked from commit 29bcc7f)
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja hauntsaninja merged commit f2cac4a into python:release-1.1 Feb 23, 2023
@cdce8p cdce8p deleted the backport-dataclass_transform-incremental branch February 23, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants