From 1df1a8e74c2a6b8fb1656fb6427c12432616945f Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 19 Apr 2023 18:25:02 +0200 Subject: [PATCH] use correct class for typing hints --- cleanmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanmedia b/cleanmedia index 4c85d6d..c6600a4 100755 --- a/cleanmedia +++ b/cleanmedia @@ -104,7 +104,7 @@ class MediaRepository: self.db_conn_string = connection_string self.conn = self.connect_db(); - def connect_db(self) -> psycopg2.connection: + def connect_db(self) -> psycopg2.extensions.connection: #postgresql://user:pass@localhost/database?params if self.db_conn_string is None or not self.db_conn_string.startswith(("postgres://","postgresql://")): errstr = "DB connection not a postgres one"