Commit 7257adc
committed
fix: relax _parse_admin_form parameter type for FormData compat
Starlette's FormData is not Mapping[str, str] — values may be
str or UploadFile. mypy on CI catches the mismatch (locally it
slipped through under a more permissive version).
Widen the parameter type to Mapping[str, Any]; the parser only
reads keys that hold str values and coerces via str() where needed,
so behaviour is unchanged.1 parent a218884 commit 7257adc
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
| 415 | + | |
415 | 416 | | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| 423 | + | |
| 424 | + | |
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
| |||
0 commit comments