def test_raises_type_error(self) -> None:
        """Test that a TypeError is raised if the component is not of the correct type."""
        component = 1
        with pytest.raises(TypeError):
            AnomalibModule._resolve_component(  # noqa: SLF001
                component=component,
                component_type=self.DummyComponent,
                default_callable=self.dummy_configure_component,
            )
Test that a TypeError is raised if the component is not of the correct type.
tests/unit/models/components/base/test_anomaly_module.py