From ef50ce6c141be85b96eb1f30338c897272b0c372 Mon Sep 17 00:00:00 2001
From: Alain Riou <alain.riou14000@yahoo.com>
Date: Wed, 17 Jan 2024 00:41:58 +0100
Subject: [PATCH] make it work w/ python 3.8

---
 pesto/model.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pesto/model.py b/pesto/model.py
index 2724127..a728e35 100644
--- a/pesto/model.py
+++ b/pesto/model.py
@@ -161,7 +161,7 @@ class PESTO(nn.Module):
     def __init__(self,
                  encoder: nn.Module,
                  preprocessor: nn.Module,
-                 crop_kwargs: Mapping[str, Any] | None = None,
+                 crop_kwargs: Optional[Mapping[str, Any]] = None,
                  reduction: str = "alwa"):
         super(PESTO, self).__init__()
         self.encoder = encoder
-- 
GitLab