Skip to content

Commit

Permalink
fix dependencies and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Nov 7, 2024
1 parent 500b5ff commit 64de75d
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 7 deletions.
2 changes: 0 additions & 2 deletions dlt/common/libs/ibis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

try:
import ibis # type: ignore[import-untyped]
from ibis import Table
from ibis import memtable
from ibis import BaseBackend
except ModuleNotFoundError:
raise MissingDependencyException("dlt ibis Helpers", ["ibis"])
Expand Down
3 changes: 0 additions & 3 deletions dlt/destinations/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@

if TYPE_CHECKING:
try:
from dlt.common.libs.ibis import Table as IbisTable
from dlt.common.libs.ibis import BaseBackend as IbisBackend
except MissingDependencyException:
IbisTable = Any
IbisBackend = Any
else:
IbisTable = Any
IbisBackend = Any


Expand Down
82 changes: 80 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ pytest-mock = "^3.14.0"
types-regex = "^2024.5.15.20240519"
flake8-print = "^5.0.0"
mimesis = "^7.0.0"
ibis-framework = { version = ">=9.0.0", markers = "python_version >= '3.10'"}

[tool.poetry.group.sources]
optional = true
Expand Down

0 comments on commit 64de75d

Please sign in to comment.