Commit 490b1b3
fix(settings): use explicit None/empty guard for Path serializer
`Path` has no `__bool__`, making all instances truthy. The previous
`if not input_value:` guard was therefore never entered for any `Path`,
so `Path("")` silently resolved to the current working directory.
Replace the falsy check with an explicit guard:
if input_value is None or not input_value.parts:
This correctly returns `None` for both `None` and empty/no-parts paths
(e.g. `Path("")` / `Path()`), while resolving all other paths as before.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 11f72b1 commit 490b1b3
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
0 commit comments