Commit 8c46b51
fix(packagesettings): restore frozenset default for serialize exclude parameter
The serialize() method should default to a frozenset as it was before.
- Change exclude parameter type to set[str] | frozenset[str]
- Default to frozenset({'name', 'has_config'})
- Convert frozenset to set when calling model_dump() to satisfy Pydantic's IncEx type
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ab94285 commit 8c46b51
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | | - | |
| 549 | + | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | | - | |
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
558 | 556 | | |
559 | 557 | | |
560 | 558 | | |
561 | | - | |
| 559 | + | |
562 | 560 | | |
563 | 561 | | |
564 | 562 | | |
| |||
0 commit comments