Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from __future__ import annotations

from collections.abc import Iterable
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING, Any, NoReturn

from sqlalchemy import create_engine

Expand Down Expand Up @@ -83,9 +83,7 @@ def get_uri(self) -> str:

# The superclass DbApiHook's method implementation has a return type `None` and mypy fails saying
# return type `NotImplementedError` is incompatible with it. Hence, we ignore the mypy error here.
def set_autocommit( # type: ignore[override]
self, conn: Connection, autocommit: bool
) -> NotImplementedError:
def set_autocommit(self, conn: Connection, autocommit: bool) -> NoReturn:
raise NotImplementedError("There are no transactions in Drill.")

# The superclass DbApiHook's method implementation has a return type `None` and mypy fails saying
Expand Down