-
-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Description
Reproducible code
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)))Output
test.py:16 <module>
foo: Foo(x=1) (Foo)
bar: Bar(
a=1.0,
b={'x': 1},
) (Bar)
Expected output
test.py:16 <module>
foo: Foo(x=1) (Foo)
bar: Bar(
a=1.0,
b=Foo(x=1),
) (Bar)
Metadata
Metadata
Assignees
Labels
No labels