Skip to content

Commit

Permalink
Ignore type error in get_component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liraim committed Oct 23, 2024
1 parent 35fbad6 commit 4611385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evidently/ui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, config: "Config", components_mapping: Dict[Type[Component], C
def get_component(self, type_: Type[T]) -> T:
for cls in self.components_mapping:
if issubclass(cls, type_):
return self.components_mapping[cls]
return self.components_mapping[cls] # type: ignore[return-value]
raise ValueError(f"Component of type {type_.__name__} not found")

@property
Expand Down

0 comments on commit 4611385

Please sign in to comment.