Skip to content

Commit 94d093a

Browse files
committed
fix complaint
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent a4b9285 commit 94d093a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

monai/deploy/core/app_context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def update(self, args: Dict[str, str]):
4747
self._model_loaded = False # path changed, reset the flag to re-load
4848

4949
if not self._model_loaded:
50-
self.models = ModelFactory.create(abspath(self.model_path)) if not self._model_loaded else self.models
50+
self.models: Optional[Model] = (
51+
ModelFactory.create(abspath(self.model_path)) if not self._model_loaded else self.models
52+
)
5153
self._model_loaded = True
5254

5355
def __repr__(self):

0 commit comments

Comments
 (0)