Skip to content

Commit 248914f

Browse files
committed
fix shell testutil
1 parent b0b5121 commit 248914f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gluonts/testutil/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import typing
2222
import waitress
2323
from contextlib import closing, contextmanager
24-
from dataclasses import dataclass
24+
from dataclasses import dataclass, field
2525
from multiprocessing.context import ForkContext
2626
from pathlib import Path
2727
from typing import Any, ContextManager, Dict, Iterable, List, Optional, Type
@@ -119,7 +119,7 @@ def free_port() -> int:
119119
class Server:
120120
env: ServeEnv
121121
forecaster_type: Optional[Type[Predictor]]
122-
settings: Settings = Settings()
122+
settings: Settings = field(default_factory=Settings)
123123

124124
def run(self):
125125
flask_app = make_flask_app(

0 commit comments

Comments
 (0)