Skip to content

Commit 1d95d92

Browse files
committed
Updates component store to make compliant with mypy
1 parent f94e666 commit 1d95d92

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

monai/utils/component_store.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ def _my_func(a, b):
4949
result = func(7, 6)
5050
5151
"""
52-
53-
_Component = namedtuple("Component", ("description", "value")) # internal value pair
52+
_Component = namedtuple("_Component", ("description", "value")) # internal value pair
5453

5554
def __init__(self, name: str, description: str) -> None:
56-
self.components: dict[str, self._Component] = {}
55+
self.components: dict[str, ComponentStore._Component] = {}
5756
self.name: str = name
5857
self.description: str = description
5958

0 commit comments

Comments
 (0)