Closed thesadru closed 2 years ago
import dataclasses import devtools @dataclasses.dataclass class Foo: x: int @dataclasses.dataclass class Bar: a: float b: Foo devtools.debug(foo=Foo(1), bar=Bar(1.0, b=Foo(1)))
test.py:16 <module> foo: Foo(x=1) (Foo) bar: Bar( a=1.0, b={'x': 1}, ) (Bar)
test.py:16 <module> foo: Foo(x=1) (Foo) bar: Bar( a=1.0, b=Foo(x=1), ) (Bar)
Reproducible code
Output
Expected output