Skip to content

Conversation

@copybara-service
Copy link

Minor improvements to the dataclasses overlay

  • Relaxed type checking for dataclasses with unknown/dynamic base classes.
    The set of fields for such dataclasses is unknown, so we cannot precisely
    check instantiation and dataclasses.replace calls.
  • Allowed inheriting __match_args__.
  • Ensured that kw_only= fields are excluded from __match_args__.

* Relaxed type checking for dataclasses with unknown/dynamic base classes.
  The set of fields for such dataclasses is unknown, so we cannot precisely
  check instantiation and `dataclasses.replace` calls.
* Allowed inheriting `__match_args__`.
* Ensured that `kw_only=` fields are excluded from `__match_args__`.

PiperOrigin-RevId: 826512868
@copybara-service copybara-service bot merged commit 9e87d0f into main Oct 31, 2025
@copybara-service copybara-service bot deleted the cl/826079562 branch October 31, 2025 16:13
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.

1 participant