Skip to content

Commit 0af8ae3

Browse files
committed
ignore explicit Union
Signed-off-by: Daniel King <[email protected]>
1 parent af5827c commit 0af8ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vortex-python/python/vortex/type_aliases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# SPDX-FileCopyrightText: Copyright the Vortex contributors
3-
from typing import TypeAlias, Union
3+
from typing import TypeAlias, Union # pyright: ignore[reportDeprecated]
44

55
import pyarrow as pa
66

@@ -11,7 +11,7 @@
1111
# TypeAliases do not support __doc__.
1212
IntoProjection: TypeAlias = Expr | list[str] | None
1313
IntoArrayIterator: TypeAlias = Array | ArrayIterator | pa.Table | pa.RecordBatchReader
14-
IntoArray: TypeAlias = Union[Array, "pa.Array[pa.Scalar[pa.DataType]]", pa.Table]
14+
IntoArray: TypeAlias = Union[Array, "pa.Array[pa.Scalar[pa.DataType]]", pa.Table] # pyright: ignore[reportDeprecated]
1515

1616
# If you make an intersphinx reference to pyarrow.RecordBatchReader in the return type of a function
1717
# *and also* use the IntoProjection type alias in a parameter type, Sphinx thinks the type alias

0 commit comments

Comments
 (0)