File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ from typing import TYPE_CHECKING
3+
24from pyathena .sqlalchemy .base import AthenaDialect
35from pyathena .util import strtobool
46
7+ if TYPE_CHECKING :
8+ from types import ModuleType
9+
510
611class AthenaArrowDialect (AthenaDialect ):
712 driver = "arrow"
@@ -18,3 +23,7 @@ def create_connect_args(self, url):
1823 if cursor_kwargs :
1924 opts .update ({"cursor_kwargs" : cursor_kwargs })
2025 return [[], opts ]
26+
27+ @classmethod
28+ def import_dbapi (cls ) -> "ModuleType" :
29+ return super ().import_dbapi ()
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ from typing import TYPE_CHECKING
3+
24from pyathena .sqlalchemy .base import AthenaDialect
35from pyathena .util import strtobool
46
7+ if TYPE_CHECKING :
8+ from types import ModuleType
9+
510
611class AthenaPandasDialect (AthenaDialect ):
712 driver = "pandas"
@@ -22,3 +27,7 @@ def create_connect_args(self, url):
2227 if cursor_kwargs :
2328 opts .update ({"cursor_kwargs" : cursor_kwargs })
2429 return [[], opts ]
30+
31+ @classmethod
32+ def import_dbapi (cls ) -> "ModuleType" :
33+ return super ().import_dbapi ()
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2+ from typing import TYPE_CHECKING
3+
24from pyathena .sqlalchemy .base import AthenaDialect
35
6+ if TYPE_CHECKING :
7+ from types import ModuleType
8+
49
510class AthenaRestDialect (AthenaDialect ):
611 driver = "rest"
712 supports_statement_cache = True
13+
14+ @classmethod
15+ def import_dbapi (cls ) -> "ModuleType" :
16+ return super ().import_dbapi ()
You can’t perform that action at this time.
0 commit comments