Skip to content

Commit 98ada77

Browse files
Tuan TranTuan Tran
authored andcommitted
fix python 3.11 compatibility
1 parent 4b1b2f6 commit 98ada77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/units/training/test_get_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __post_init__(self):
2323
@dataclass
2424
class Config:
2525
foobar: str = "test"
26-
cfg: Foo = Foo()
26+
cfg: Foo = field(default_factory=lambda: Foo())
2727
c: float = field(init=False)
2828

2929
def __post_init__(self):

0 commit comments

Comments
 (0)