Commit e1cb7f7
committed
š Fix model_fields_optional compatibility with pydantic 2.11.x and linting
- Use `copy.copy()` fallback for FieldInfo when `_copy()` is unavailable
(added in pydantic 2.12.0, but project supports >=2.11.0)
- Replace `Union[X, None]` with `X | None` to satisfy ruff UP007/UP045
- Apply ruff formatting fixes1 parent f7d4f18 commit e1cb7f7
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
594 | 595 | | |
595 | 596 | | |
596 | 597 | | |
597 | | - | |
| 598 | + | |
598 | 599 | | |
599 | 600 | | |
600 | 601 | | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
605 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
606 | 610 | | |
607 | 611 | | |
608 | 612 | | |
| |||
0 commit comments