Skip to content

Commit e6658b8

Browse files
committed
fix: default factory should be a callable
1 parent aa7b40d commit e6658b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/snake/toolkit/cli/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ class ConfigSNAKE:
7474
handlers: Any
7575
sampler: Any
7676
reconstructors: Any
77-
sim_conf: SimConfig = field(default_factory=SimConfig())
78-
engine: EngineConfig = field(default_factory=EngineConfig())
79-
phantom: PhantomConfig = field(default_factory=PhantomConfig())
80-
stats: StatConfig = field(default_factory=StatConfig())
77+
sim_conf: SimConfig = field(default_factory=SimConfig)
78+
engine: EngineConfig = field(default_factory=EngineConfig)
79+
phantom: PhantomConfig = field(default_factory=PhantomConfig)
80+
stats: StatConfig = field(default_factory=StatConfig)
8181
cache_dir: Path = "${oc.env:PWD}/cache" # type: ignore
8282
result_dir: Path = "${oc.env:PWD}/results" # type: ignore
8383
filename: Path = "test.mrd" # type: ignore

0 commit comments

Comments
 (0)