Skip to content

Commit 3c5ec16

Browse files
committed
Fix KernelFactory return types
1 parent 4f4fd55 commit 3c5ec16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • baybe/surrogates/gaussian_process/components

baybe/surrogates/gaussian_process/components/kernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _validate_parameter_kinds(self, parameters: Iterable[Parameter]) -> None:
9090
@override
9191
def __call__(
9292
self, searchspace: SearchSpace, train_x: Tensor, train_y: Tensor
93-
) -> Kernel:
93+
) -> Kernel | GPyTorchKernel:
9494
"""Construct the kernel, validating parameter kinds before construction."""
9595
if self.parameter_selector is not None:
9696
params = [p for p in searchspace.parameters if self.parameter_selector(p)]
@@ -103,7 +103,7 @@ def __call__(
103103
@abstractmethod
104104
def _make(
105105
self, searchspace: SearchSpace, train_x: Tensor, train_y: Tensor
106-
) -> Kernel:
106+
) -> Kernel | GPyTorchKernel:
107107
"""Construct the kernel."""
108108

109109
def __attrs_post_init__(self):

0 commit comments

Comments
 (0)