Skip to content

Commit 62e13ab

Browse files
Update src/anomalib/models/components/base/anomalib_module.py
Co-authored-by: Ashwin Vaidya <[email protected]>
1 parent 28db1e6 commit 62e13ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anomalib/models/components/base/anomalib_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def learning_type(self) -> LearningType:
300300
raise NotImplementedError
301301

302302
@staticmethod
303-
def _resolve_component(component: nn.Module | None, component_type: type, default_callable: Callable) -> nn.Module:
303+
def _resolve_component(component: nn.Module | None, component_type: type, default_callable: Callable) -> nn.Module | None:
304304
"""Resolve and validate the subcomponent configuration.
305305
306306
This method resolves the configuration for various subcomponents like

0 commit comments

Comments
 (0)