Skip to content

Commit 5e27207

Browse files
committed
remove some newlines
1 parent a192385 commit 5e27207

20 files changed

+2
-196
lines changed

python/pyarrow-stubs/pyarrow/_csv.pyi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ReadOptions(lib._Weakrefable):
3838

3939
@dataclass(kw_only=True)
4040
class ParseOptions(lib._Weakrefable):
41-
4241
delimiter: str = field(default=",", kw_only=False) # noqa: Y015
4342
quote_char: str | Literal[False] = '"'
4443
double_quote: bool = True
@@ -52,7 +51,6 @@ class ParseOptions(lib._Weakrefable):
5251

5352
@dataclass(kw_only=True)
5453
class ConvertOptions(lib._Weakrefable):
55-
5654
check_utf8: bool = field(default=True, kw_only=False) # noqa: Y015
5755
column_types: lib.Schema | dict | Sequence[tuple[str, lib.DataType]] | None = None
5856
null_values: list[str] | None = None
@@ -72,7 +70,6 @@ class ConvertOptions(lib._Weakrefable):
7270

7371
@dataclass(kw_only=True)
7472
class WriteOptions(lib._Weakrefable):
75-
7673
include_header: bool = field(default=True, kw_only=False) # noqa: Y015
7774
batch_size: int = 1024
7875
delimiter: str = ","
@@ -84,15 +81,13 @@ class WriteOptions(lib._Weakrefable):
8481

8582
@dataclass
8683
class InvalidRow(lib._Weakrefable):
87-
8884
expected_columns: int
8985
actual_columns: int
9086
number: int | None
9187
text: str
9288

9389

9490
class CSVWriter(lib._CRecordBatchWriter):
95-
9691
def __init__(
9792
self,
9893
# TODO: OutputStream

python/pyarrow-stubs/pyarrow/_cuda.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ from ._stubs_typing import ArrayLike
2626

2727

2828
class Context(lib._Weakrefable):
29-
3029
def __init__(self, device_number: int = 0, handle: int | None = None) -> None: ...
3130

3231
@staticmethod
@@ -74,15 +73,13 @@ class Context(lib._Weakrefable):
7473

7574

7675
class IpcMemHandle(lib._Weakrefable):
77-
7876
@staticmethod
7977
def from_buffer(opaque_handle: lib.Buffer) -> IpcMemHandle: ...
8078

8179
def serialize(self, pool: lib.MemoryPool | None = None) -> lib.Buffer: ...
8280

8381

8482
class CudaBuffer(lib.Buffer):
85-
8683
@staticmethod
8784
def from_buffer(buf: lib.Buffer) -> CudaBuffer: ...
8885

@@ -118,19 +115,16 @@ class CudaBuffer(lib.Buffer):
118115

119116

120117
class HostBuffer(lib.Buffer):
121-
122118
@property
123119
def size(self) -> int: ...
124120

125121

126122
class BufferReader(lib.NativeFile):
127-
128123
def __init__(self, obj: CudaBuffer) -> None: ...
129124
def read_buffer(self, nbytes: int | None = None) -> CudaBuffer: ...
130125

131126

132127
class BufferWriter(lib.NativeFile):
133-
134128
def __init__(self, obj: CudaBuffer) -> None: ...
135129
def writeat(self, position: int, data: ArrayLike) -> None: ...
136130

python/pyarrow-stubs/pyarrow/_dataset.pyi

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ from .ipc import IpcWriteOptions, RecordBatchReader
4242

4343

4444
class Dataset(lib._Weakrefable):
45-
4645
@property
4746
def partition_expression(self) -> Expression: ...
4847

@@ -245,7 +244,6 @@ class FileFormat(lib._Weakrefable):
245244

246245

247246
class Fragment(lib._Weakrefable):
248-
249247
def open(self) -> lib.NativeFile | lib.BufferReader: ...
250248
@property
251249
def path(self) -> str: ...
@@ -346,7 +344,6 @@ class Fragment(lib._Weakrefable):
346344

347345

348346
class FileFragment(Fragment):
349-
350347
def open(self) -> lib.NativeFile: ...
351348

352349
@property
@@ -363,7 +360,6 @@ class FileFragment(Fragment):
363360

364361

365362
class FragmentScanOptions(lib._Weakrefable):
366-
367363
@property
368364
def type_name(self) -> str: ...
369365

@@ -387,7 +383,6 @@ class FeatherFileFormat(IpcFileFormat):
387383

388384

389385
class CsvFileFormat(FileFormat):
390-
391386
def __init__(
392387
self,
393388
parse_options: csv.ParseOptions | None = None,
@@ -406,7 +401,6 @@ class CsvFileFormat(FileFormat):
406401

407402

408403
class CsvFragmentScanOptions(FragmentScanOptions):
409-
410404
convert_options: csv.ConvertOptions
411405
read_options: csv.ReadOptions
412406

@@ -423,7 +417,6 @@ class CsvFileWriteOptions(FileWriteOptions):
423417

424418

425419
class JsonFileFormat(FileFormat):
426-
427420
def __init__(
428421
self,
429422
default_fragment_scan_options: JsonFragmentScanOptions | None = None,
@@ -434,7 +427,6 @@ class JsonFileFormat(FileFormat):
434427

435428

436429
class JsonFragmentScanOptions(FragmentScanOptions):
437-
438430
parse_options: _json.ParseOptions
439431
read_options: _json.ReadOptions
440432

@@ -469,7 +461,6 @@ class KeyValuePartitioning(Partitioning):
469461

470462

471463
class DirectoryPartitioning(KeyValuePartitioning):
472-
473464
@staticmethod
474465
def discover(
475466
field_names: list[str] | None = None,
@@ -488,7 +479,6 @@ class DirectoryPartitioning(KeyValuePartitioning):
488479

489480

490481
class HivePartitioning(KeyValuePartitioning):
491-
492482
def __init__(
493483
self,
494484
schema: lib.Schema,
@@ -508,7 +498,6 @@ class HivePartitioning(KeyValuePartitioning):
508498

509499

510500
class FilenamePartitioning(KeyValuePartitioning):
511-
512501
def __init__(
513502
self,
514503
schema: lib.Schema,
@@ -526,7 +515,6 @@ class FilenamePartitioning(KeyValuePartitioning):
526515

527516

528517
class DatasetFactory(lib._Weakrefable):
529-
530518
root_partition: Expression
531519
def finish(self, schema: lib.Schema | None = None) -> Dataset: ...
532520

@@ -541,7 +529,6 @@ class DatasetFactory(lib._Weakrefable):
541529

542530

543531
class FileSystemFactoryOptions(lib._Weakrefable):
544-
545532
partitioning: Partitioning
546533
partitioning_factory: PartitioningFactory
547534
partition_base_dir: str
@@ -558,7 +545,6 @@ class FileSystemFactoryOptions(lib._Weakrefable):
558545

559546

560547
class FileSystemDatasetFactory(DatasetFactory):
561-
562548
def __init__(
563549
self,
564550
filesystem: SupportedFileSystem,
@@ -569,33 +555,28 @@ class FileSystemDatasetFactory(DatasetFactory):
569555

570556

571557
class UnionDatasetFactory(DatasetFactory):
572-
573558
def __init__(self, factories: list[DatasetFactory]) -> None: ...
574559

575560

576561
_RecordBatchT = TypeVar("_RecordBatchT", bound=lib.RecordBatch)
577562

578563

579564
class RecordBatchIterator(lib._Weakrefable, Generic[_RecordBatchT]):
580-
581565
def __iter__(self) -> Self: ...
582566
def __next__(self) -> _RecordBatchT: ...
583567

584568

585569
class TaggedRecordBatch(NamedTuple):
586-
587570
record_batch: lib.RecordBatch
588571
fragment: Fragment
589572

590573

591574
class TaggedRecordBatchIterator(lib._Weakrefable):
592-
593575
def __iter__(self) -> Self: ...
594576
def __next__(self) -> TaggedRecordBatch: ...
595577

596578

597579
class Scanner(lib._Weakrefable):
598-
599580
@staticmethod
600581
def from_dataset(
601582
dataset: Dataset,
@@ -668,7 +649,6 @@ def get_partition_keys(partition_expression: Expression) -> dict[str, Any]: ...
668649

669650

670651
class WrittenFile(lib._Weakrefable):
671-
672652
def __init__(self, path: str, metadata: _parquet.FileMetaData |
673653
None, size: int) -> None: ...
674654

@@ -697,7 +677,6 @@ class _ScanNodeOptions(ExecNodeOptions):
697677

698678

699679
class ScanNodeOptions(_ScanNodeOptions):
700-
701680
def __init__(
702681
self, dataset: Dataset, require_sequenced_output: bool = False, **kwargs
703682
) -> None: ...

python/pyarrow-stubs/pyarrow/_dataset_parquet.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ parquet_encryption_enabled: bool
4242

4343

4444
class ParquetFileFormat(FileFormat):
45-
4645
def __init__(
4746
self,
4847
read_options: ParquetReadOptions | None = None,
@@ -76,7 +75,6 @@ class _NameStats(TypedDict):
7675

7776

7877
class RowGroupInfo:
79-
8078
id: int
8179
metadata: FileMetaData
8280
schema: Schema
@@ -91,7 +89,6 @@ class RowGroupInfo:
9189

9290

9391
class ParquetFileFragment(FileFragment):
94-
9592
def ensure_complete_metadata(self) -> None: ...
9693
@property
9794
def path(self) -> str: ...
@@ -119,7 +116,6 @@ class ParquetFileFragment(FileFragment):
119116

120117

121118
class ParquetReadOptions(_Weakrefable):
122-
123119
def __init__(
124120
self,
125121
dictionary_columns: list[str] | set[str] | None = None,
@@ -162,7 +158,6 @@ class ParquetFileWriteOptions(FileWriteOptions):
162158

163159
@dataclass(kw_only=True)
164160
class ParquetFragmentScanOptions(FragmentScanOptions):
165-
166161
use_buffered_stream: bool = False
167162
buffer_size: int = 8192
168163
pre_buffer: bool = True
@@ -185,7 +180,6 @@ class ParquetFactoryOptions(_Weakrefable):
185180

186181

187182
class ParquetDatasetFactory(DatasetFactory):
188-
189183
def __init__(
190184
self,
191185
metadata_path: str,

python/pyarrow-stubs/pyarrow/_dataset_parquet_encryption.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ from .lib import _Weakrefable
2323

2424

2525
class ParquetEncryptionConfig(_Weakrefable):
26-
2726
def __init__(
2827
self,
2928
crypto_factory: CryptoFactory,
@@ -33,7 +32,6 @@ class ParquetEncryptionConfig(_Weakrefable):
3332

3433

3534
class ParquetDecryptionConfig(_Weakrefable):
36-
3735
def __init__(
3836
self,
3937
crypto_factory: CryptoFactory,

0 commit comments

Comments
 (0)