Skip to content

Commit

Permalink
import only in init
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Dec 13, 2023
1 parent 2580043 commit 970ca7a
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 17 deletions.
2 changes: 2 additions & 0 deletions python/deltalake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore

from ._internal import __version__ as __version__
from ._internal import rust_core_version as rust_core_version
from .data_catalog import DataCatalog as DataCatalog
Expand Down
1 change: 0 additions & 1 deletion python/deltalake/_internal.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ else:

import pyarrow
import pyarrow.fs as fs
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore

from deltalake.writer import AddAction

Expand Down
1 change: 0 additions & 1 deletion python/deltalake/fs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Dict, List, Optional

import pyarrow as pa
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore
from pyarrow.fs import FileInfo, FileSelector, FileSystemHandler

from ._internal import DeltaFileSystemHandler
Expand Down
1 change: 0 additions & 1 deletion python/deltalake/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pyarrow as pa
import pyarrow.dataset as ds
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore

from ._internal import ArrayType as ArrayType
from ._internal import Field as Field
Expand Down
1 change: 0 additions & 1 deletion python/deltalake/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import pyarrow
import pyarrow.dataset as ds
import pyarrow.fs as pa_fs
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore
from pyarrow.dataset import (
Expression,
FileSystemDataset,
Expand Down
1 change: 0 additions & 1 deletion python/deltalake/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import pyarrow as pa
import pyarrow.dataset as ds
import pyarrow.fs as pa_fs
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore
from pyarrow.lib import RecordBatchReader

from ._internal import DeltaDataChecker as _DeltaDataChecker
Expand Down
Empty file.
11 changes: 0 additions & 11 deletions python/stubs/pyarrow_hotfix/fs.pyi

This file was deleted.

1 change: 0 additions & 1 deletion python/tests/pyspark_integration/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import List

import pyarrow as pa
import pyarrow_hotfix # noqa: F401; addresses CVE-2023-47248; # type: ignore

try:
import delta
Expand Down

0 comments on commit 970ca7a

Please sign in to comment.