Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
borchero committed Aug 5, 2023
1 parent 570ca64 commit c21fab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python-package/lightgbm/arrow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# coding: utf-8
"""Utilities for handling Arrow in LightGBM."""
from contextlib import contextmanager
from dataclasses import dataclass
from typing import Iterator, Union
Expand All @@ -16,10 +18,12 @@ class ArrowCArray:

@property
def chunks_ptr(self) -> int:
"""Returns the address of the pointer to the list of chunks making up the array."""
return int(ffi.cast("uintptr_t", ffi.addressof(self.chunks[0])))

@property
def schema_ptr(self) -> int:
"""Returns the address of the pointer to the schema of the array."""
return int(ffi.cast("uintptr_t", self.schema))


Expand Down
1 change: 0 additions & 1 deletion tests/python_package_test/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

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

Expand Down

0 comments on commit c21fab4

Please sign in to comment.