Commit 276d1b9
committed
Simplify ActionGroup label default (#1992)
## Summary
- ActionGroup `label` field now defaults to `""` via a `_to_str`
converter instead of post-init fixup
- Simplifies `__attrs_post_init__` to only handle id/oid resolution
Depends on #1991 (model simplifications).
## Breaking changes
- `ActionGroup.label` type changed from `str | None` to `str` (always a
string, `None` input is converted to `""`)
## Test plan
- [ ] ActionGroup tests pass with label=None, label="", and
label="value"1 parent aedb971 commit 276d1b9
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
682 | 687 | | |
683 | 688 | | |
684 | 689 | | |
685 | | - | |
| 690 | + | |
686 | 691 | | |
687 | 692 | | |
688 | 693 | | |
| |||
693 | 698 | | |
694 | 699 | | |
695 | 700 | | |
696 | | - | |
| 701 | + | |
697 | 702 | | |
698 | 703 | | |
699 | 704 | | |
700 | 705 | | |
701 | 706 | | |
702 | | - | |
703 | | - | |
704 | 707 | | |
705 | 708 | | |
706 | 709 | | |
| |||
0 commit comments