From 9fe6c0f07b6a7e22ff1bd1e0dec2445b197680e0 Mon Sep 17 00:00:00 2001 From: Loic Coyle Date: Mon, 24 Jun 2024 18:40:28 +0200 Subject: [PATCH] fix(mosaic): drop Literal typing --- phomo/mosaic.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phomo/mosaic.py b/phomo/mosaic.py index 344cc9b..94df641 100644 --- a/phomo/mosaic.py +++ b/phomo/mosaic.py @@ -145,9 +145,7 @@ def d_matrix( self._log.debug("d_matrix shape: %s", d_matrix.shape) return d_matrix - def d_matrix_cuda( - self, metric: Literal["norm"] | Literal["greyscale"] = "norm" - ) -> np.ndarray: + def d_matrix_cuda(self, metric: str = "norm") -> np.ndarray: """Compute the distance matrix using CUDA for GPU acceleration. Args: