Open Tishka17 opened 4 weeks ago
Workaround is to fill recursive fields with defaults in converter and fill manually in wrapper . This could look ugly because there are no extra fields, but in real project there can be more fields, that are processed normally
@impl_converter(
recipe=[
link_constant(P[A].ass, value=None),
]
)
def _a(src: A0) -> A:
...
def a(src: A0, ass: Optional[list[A]]) -> A:
res = _a(src)
res.ass = ass
return res
Code:
Part of result
This code works well on 3.0.0b6 on python 3.11