diff --git a/python/pyspark/sql/conversion.py b/python/pyspark/sql/conversion.py index f73727d1d534..359dd32cc889 100644 --- a/python/pyspark/sql/conversion.py +++ b/python/pyspark/sql/conversion.py @@ -113,7 +113,7 @@ def _create_converter( dataType: DataType, nullable: bool = True, *, - none_on_identity: bool = True, + none_on_identity: bool = False, int_to_decimal_coercion_enabled: bool = False, ) -> Optional[Callable]: pass @@ -811,7 +811,9 @@ def convert(table: "pa.Table", schema: StructType, *, binary_as_bytes: bool) -> @overload @staticmethod - def convert(table: "pa.Table", schema: StructType, *, return_as_tuples: bool) -> List[tuple]: + def convert( + table: "pa.Table", schema: StructType, *, return_as_tuples: bool + ) -> List[Row | tuple]: pass @staticmethod # type: ignore[misc]