Skip to content

Commit 3f69352

Browse files
committed
annotation fix
1 parent 9796db7 commit 3f69352

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/pyarrow-stubs/pyarrow/compute.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def round(
654654
def round_to_multiple(
655655
x: _NumericScalarT | _NumericArrayT | list | Expression,
656656
/,
657-
multiple: int = 0,
657+
multiple: int | float | NumericScalar = 1.0,
658658
round_mode: Literal[
659659
"down",
660660
"up",

python/pyarrow/tests/parquet/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ def _test_write_to_dataset_with_partitions(base_path,
971971
input_df_cols = input_df.columns.tolist()
972972
assert partition_by == input_df_cols[-1 * len(partition_by):]
973973

974-
input_df = input_df[cols] # type: ignore[assignment]
974+
input_df = input_df.loc[:, cols]
975975
# Partitioned columns become 'categorical' dtypes
976976
for col in partition_by:
977977
output_df[col] = output_df[col].astype('category')

0 commit comments

Comments
 (0)