Skip to content

Commit eda3425

Browse files
committed
Move to __lib/ to fix Module errors for pa.array/table/scalar
1 parent c570fa9 commit eda3425

13 files changed

Lines changed: 34 additions & 16 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# Separate subpackage so that e.g. array.pyi doesn't shadow pyarrow.array()

python/pyarrow-stubs/pyarrow/array.pyi renamed to python/pyarrow-stubs/pyarrow/__lib/array.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ import builtins
5252

5353
from .scalar import Int64Scalar, Scalar
5454
from .device import DeviceAllocationType
55-
from ._types import BaseExtensionType, DataType, Field, StructType
56-
from ._stubs_typing import NullableCollection
55+
from pyarrow._types import BaseExtensionType, DataType, Field, StructType
56+
from pyarrow._stubs_typing import NullableCollection
5757

5858
def array(
5959
values: NullableCollection
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

python/pyarrow-stubs/pyarrow/table.pyi renamed to python/pyarrow-stubs/pyarrow/__lib/table.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ from pyarrow.lib import Device, Field, MemoryManager, MemoryPool, Schema
5858
from .array import Array, StructArray, _PandasConvertible
5959
from .device import DeviceAllocationType
6060
from .io import Buffer
61-
from ._ipc import RecordBatchReader
61+
from pyarrow._ipc import RecordBatchReader
6262
from .scalar import Int64Scalar, Scalar
6363
from .tensor import Tensor
64-
from ._stubs_typing import NullableCollection
65-
from ._types import DataType
64+
from pyarrow._stubs_typing import NullableCollection
65+
from pyarrow._types import DataType
6666

6767
ArrayOrChunkedArray: TypeAlias = Array | ChunkedArray
6868

0 commit comments

Comments
 (0)