Skip to content

Commit 3c40512

Browse files
committed
More explicit imports to quiet mypy complaints
Signed-off-by: M Q <mingmelvinq@nvidia.com>
1 parent 77ce0f6 commit 3c40512

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

monai/deploy/conditions/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Need to import explicit ones to quiet mypy complaints
2+
from holoscan.conditions import CountCondition
13
from holoscan.conditions import *

monai/deploy/core/__init__.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@
2424
OutputContext
2525
"""
2626

27+
# Need to import explicit ones to quiet mypy complaints
28+
from holoscan.core import (
29+
Application,
30+
Fragment,
31+
ConditionType,
32+
Operator,
33+
OperatorSpec
34+
)
2735
from holoscan.core import *
2836

29-
# from .application import Application
3037
from .app_context import AppContext
3138
from .domain.datapath import DataPath
3239
from .domain.image import Image
3340

3441
# from .env import env
35-
# from .execution_context import ExecutionContext
36-
# from .io_context import InputContext, OutputContext
3742
from .io_type import IOType
3843
from .models import Model, ModelFactory, NamedModel, TorchScriptModel, TritonModel
3944
from .runtime_env import RuntimeEnv
40-
41-
# from .operator import Operator, input, output
4245
# from .resource import resource

0 commit comments

Comments
 (0)