From 37b7f05b17321b9e8f7e6da6e7db1f9b4203af27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Ga=C5=82uszka?= Date: Thu, 16 Jan 2025 23:40:09 +0100 Subject: [PATCH] fix: AsyncEngine type on engine --- slack_sdk/oauth/installation_store/sqlalchemy/__init__.py | 1 - slack_sdk/oauth/state_store/sqlalchemy/__init__.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/slack_sdk/oauth/installation_store/sqlalchemy/__init__.py b/slack_sdk/oauth/installation_store/sqlalchemy/__init__.py index ace33105..f629deea 100644 --- a/slack_sdk/oauth/installation_store/sqlalchemy/__init__.py +++ b/slack_sdk/oauth/installation_store/sqlalchemy/__init__.py @@ -256,7 +256,6 @@ def find_installation( with self.engine.connect() as conn: result: object = conn.execute(query) for row in result.mappings(): # type: ignore[attr-defined] - (row) installation = self.build_installation_entity(row) has_user_installation = user_id is not None and installation is not None diff --git a/slack_sdk/oauth/state_store/sqlalchemy/__init__.py b/slack_sdk/oauth/state_store/sqlalchemy/__init__.py index 1b0f76ba..b26f642c 100644 --- a/slack_sdk/oauth/state_store/sqlalchemy/__init__.py +++ b/slack_sdk/oauth/state_store/sqlalchemy/__init__.py @@ -102,7 +102,7 @@ def build_oauth_states_table(cls, metadata: MetaData, table_name: str) -> Table: def __init__( self, expiration_seconds: int, - engine: Engine, + engine: AsyncEngine, logger: Logger = logging.getLogger(__name__), table_name: str = default_table_name, ):