Commit dcec28b
authored
fix complex type repr (#165)
Why
===
```
File "/Users/jzhao/projects/ai-infra/.venv/lib/python3.12/site-packages/replit_river/codegen/client.py", line 408, in encode_type
raise ValueError(f"What does it mean to have {_o2} here?")
^^^^^
File "/Users/jzhao/projects/ai-infra/.venv/lib/python3.12/site-packages/replit_river/codegen/typing.py", line 33, in __str__
raise Exception("Complex type must be put through render_type_expr!")
Exception: Complex type must be put through render_type_expr!
```
What changed
============
render the error correctly
Test plan
=========
codegen doesnt crash1 parent d3bf487 commit dcec28b
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
409 | 413 | | |
410 | 414 | | |
411 | 415 | | |
| |||
496 | 500 | | |
497 | 501 | | |
498 | 502 | | |
499 | | - | |
| 503 | + | |
500 | 504 | | |
501 | 505 | | |
502 | 506 | | |
| |||
0 commit comments