Skip to content

Commit d6047a8

Browse files
hovaescohashhar
authored andcommitted
Add import_dbapi to get rid of the warning
1 parent b7055ff commit d6047a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

trino/sqlalchemy/dialect.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ def dbapi(cls):
7373
"""
7474
return trino_dbapi
7575

76+
@classmethod
77+
def import_dbapi(cls):
78+
"""
79+
ref: https://www.python.org/dev/peps/pep-0249/#module-interface
80+
"""
81+
return trino_dbapi
82+
7683
def create_connect_args(self, url: URL) -> Tuple[Sequence[Any], Mapping[str, Any]]:
7784
args: Sequence[Any] = list()
7885
kwargs: Dict[str, Any] = dict(host=url.host)

0 commit comments

Comments
 (0)