Commit aa1e501
authored
Accidentally removed array encoder (#80)
Why
===
During #69 I fixed a bug with `Any` type derivation, in so doing I
neglected to account for array encoders.
```diff
async def stageFiles(
self,
- input: Any,
+ input: GitStagefilesInput,
) -> GitStagefilesOutput:
```
This fixes the following:
```diff
- lambda x: x,
+ lambda x: TypeAdapter(List[FooBarBaz]).dump_python(
+ x, # type: ignore[arg-type]
+ by_alias=True,
+ exclude_none=True,
+ ),
```
What changed
============
- Avoid incorrectly stubbing out array encoders
Test plan
=========
Manually running confirmed the fix1 parent ecac798 commit aa1e501
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
538 | 537 | | |
539 | 538 | | |
540 | 539 | | |
| |||
0 commit comments