[bot] Merge master/a19bac34 into rel/dev#1381
Merged
yenkins-admin merged 2 commits intorel/devfrom Mar 2, 2026
Merged
Conversation
… models Unify attrs usage to the modern `@define` API (recommended since attrs 20.1.0). This eliminates three co-existing styles (@attr.s, @attrs.define, @define with redundant auto_attribs) in favor of a single consistent pattern: bare `@define` with `from attrs import define, field, ...`. Key changes across 82 files: - @attr.s / @attr.s(auto_attribs=True) → @define - @attr.s(auto_attribs=True, kw_only=True) → @define(kw_only=True) - @attrs.define(...) → @define(...) - Dropped redundant auto_attribs=True from existing @define calls - attr.field/Factory/asdict/Attribute → field/Factory/asdict/Attribute - import attr / import attrs → from attrs import define, ... - from attr.setters → from attrs.setters Enables slots=True by default (@define's default), which is safe here: no dynamic attribute assignment, max 2-level inheritance, cattrs-compatible. JIRA: trivial risk: low
refactor(gooddata-sdk): migrate @attr.s to @define
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## rel/dev #1381 +/- ##
===========================================
- Coverage 77.60% 77.55% -0.06%
===========================================
Files 224 224
Lines 14466 14432 -34
===========================================
- Hits 11227 11193 -34
Misses 3239 3239 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Automated PR to perform merge from master into rel/dev with changes up to a19bac3 (created by https://github.com/gooddata/gooddata-python-sdk/actions/runs/22579174023).