Skip to content

Commit

Permalink
Updates component store to make compliant with mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
marksgraham committed Oct 17, 2023
1 parent f94e666 commit 1d95d92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions monai/utils/component_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ def _my_func(a, b):
result = func(7, 6)
"""

_Component = namedtuple("Component", ("description", "value")) # internal value pair
_Component = namedtuple("_Component", ("description", "value")) # internal value pair

def __init__(self, name: str, description: str) -> None:
self.components: dict[str, self._Component] = {}
self.components: dict[str, ComponentStore._Component] = {}
self.name: str = name
self.description: str = description

Expand Down

0 comments on commit 1d95d92

Please sign in to comment.