Commit 2d0b19e
fix: Preserve Pydantic validation in Config.__setattr__
Changed from object.__setattr__() to super().__setattr__() so that
Pydantic's validate_assignment=True works correctly. This fixes:
- test_loglevel_validation - now correctly rejects invalid loglevels
- test_fetch_format_validation - now correctly rejects invalid formats
- test_cache_path_string - now correctly coerces strings to Path
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 933c9fb commit 2d0b19e
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
957 | 957 | | |
958 | 958 | | |
959 | 959 | | |
960 | | - | |
| 960 | + | |
| 961 | + | |
961 | 962 | | |
962 | 963 | | |
963 | 964 | | |
| |||
0 commit comments