diff --git a/baybe/kernels/base.py b/baybe/kernels/base.py index e9687dbf2..a01a5a9d7 100644 --- a/baybe/kernels/base.py +++ b/baybe/kernels/base.py @@ -42,9 +42,7 @@ def to_gpytorch( base_classes = get_baseclasses(kernel_cls, abstract=True) fields_dict = {} for cls in [kernel_cls, *base_classes]: - fields_dict.update( - filter_attributes(object=self, callable_=cls.__init__) # type: ignore[misc] - ) + fields_dict.update(filter_attributes(object=self, callable_=cls.__init__)) # Convert specified priors to gpytorch, if provided prior_dict = {