From 6be9b60cea2c903fc0082e253ed785167a5fb60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Dom=C3=ADnguez?= Date: Mon, 22 Jul 2024 17:16:18 +0200 Subject: [PATCH] workaround `mypy` error on statement using `sqlalchemy.select` ``` lib/galaxy/managers/interactivetool.py:65: error: No overload variant of "select" matches argument type "ReadOnlyColumnCollection[str, Column[Any]]" ``` --- lib/galaxy/managers/interactivetool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/interactivetool.py b/lib/galaxy/managers/interactivetool.py index 5417b4fcaa2c..21a79d9421b6 100644 --- a/lib/galaxy/managers/interactivetool.py +++ b/lib/galaxy/managers/interactivetool.py @@ -62,7 +62,7 @@ def get(self, key, key_type): columns = ("token", "host", "port", "info") with self._engine.connect() as conn: - query = select(gxitproxy.c[columns]).where( + query = select(*gxitproxy.c[columns]).where( gxitproxy.c["key"] == key, gxitproxy.c["key_type"] == key_type, )