Skip to content

Commit

Permalink
Fix isort
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Aug 5, 2023
1 parent c21fab4 commit 2cd4302
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

try:
import pyarrow as pa

from .arrow import export_arrow_to_c
except ImportError:
pass
Expand Down
2 changes: 1 addition & 1 deletion python-package/lightgbm/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ def __init__(self, *args, **kwargs):

"""pyarrow"""
try:
from pyarrow import Table as pa_Table
from pyarrow import Array as pa_Array
from pyarrow import ChunkedArray as pa_ChunkedArray
from pyarrow import Table as pa_Table
PYARROW_INSTALLED = True
except ImportError:
PYARROW_INSTALLED = False
Expand Down
3 changes: 2 additions & 1 deletion tests/python_package_test/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
from pathlib import Path
from typing import Any, Dict

import lightgbm as lgb
import numpy as np
import pyarrow as pa
import pytest

import lightgbm as lgb

# ----------------------------------------------------------------------------------------------- #
# UTILITIES #
# ----------------------------------------------------------------------------------------------- #
Expand Down

0 comments on commit 2cd4302

Please sign in to comment.