Skip to content

Commit 36bf34e

Browse files
authored
Merge pull request #15 from Point72/chore/all-tuple-consistency
Use tuples consistently for __all__
2 parents e866cb6 + b1edb6e commit 36bf34e

14 files changed

Lines changed: 19 additions & 19 deletions

polars_io_tools/io_sources/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
FAILED_LITERAL_RESULT = object()
3737

3838
# Define public exports
39-
__all__ = [
39+
__all__ = (
4040
"convert_datetime_to_polars",
4141
"extract_column_name",
42-
]
42+
)
4343

4444

4545
if version.parse(pl.__version__) < version.parse("1.28.0"):

polars_io_tools/io_sources/delta_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
# The mapping is stored as base64-encoded JSON between [tag:begin] and [tag:end] markers.
2424
_MAPPING_BLOCK_TAG = "cpl.mapping"
2525

26-
__all__ = [
26+
__all__ = (
2727
"scan_delta",
2828
"sink_delta",
29-
]
29+
)
3030

3131
log = logging.getLogger(__name__)
3232

polars_io_tools/io_sources/enum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import polars as pl
55

6-
__all__ = [
6+
__all__ = (
77
"ArrayFunctionType",
88
"BinaryFunctionType",
99
"BitwiseFunctionType",
@@ -19,7 +19,7 @@
1919
"TimeUnit",
2020
"TrigonometricFunctionType",
2121
"get_function_enum",
22-
]
22+
)
2323

2424

2525
class Expr(str, Enum):

polars_io_tools/io_sources/lazy_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
log = logging.getLogger(__name__)
1313

1414

15-
__all__ = ["cache"]
15+
__all__ = ("cache",)
1616

1717

1818
_PartitionKey = tuple[tuple[str, Any], ...]

polars_io_tools/io_sources/lazy_cache_parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ReadPlan:
5151

5252
log = logging.getLogger(__name__)
5353

54-
__all__ = ["CacheMode", "cache_parquet"]
54+
__all__ = ("CacheMode", "cache_parquet")
5555

5656

5757
def _path_as_file_uri(path: Path | PureWindowsPath) -> str:

polars_io_tools/io_sources/lazy_clickhouse_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
)
1212
from .util import register_io_source_with_is_pure
1313

14-
__all__ = ["scan_clickhouse"]
14+
__all__ = ("scan_clickhouse",)
1515

1616

1717
# Configure logging

polars_io_tools/io_sources/lazy_clickhouse_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from .._compat import POLARS_HAS_COLLECT_BATCHES
99

10-
__all__ = ["sink_clickhouse"]
10+
__all__ = ("sink_clickhouse",)
1111

1212

1313
# Configure logging

polars_io_tools/io_sources/lazy_datadog_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .range_visitor import convert_expr_to_datetime_range
99
from .util import _convert_interval_to_slices, register_io_source_with_is_pure
1010

11-
__all__ = ["metric_query", "scan_datadog"]
11+
__all__ = ("metric_query", "scan_datadog")
1212

1313

1414
def metric_query(query: str, start: int, end: int, api_key: str, app_key: str, interval: int | None = None) -> dict:

polars_io_tools/io_sources/lazy_narwhals_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .enum import BooleanFunctionType, OperatorType
1616
from .util import collect_lf_in_io_source, register_io_source_with_is_pure
1717

18-
__all__ = ["from_narwhals"]
18+
__all__ = ("from_narwhals",)
1919

2020
log = logging.getLogger(__name__)
2121

polars_io_tools/io_sources/lazy_ray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# As we did in the `lazy_parquet_cache` module, we expose the function to users, in case
2323
# they want to use it directly or though Polars' `.pipe()` syntax; however, the canonical
2424
# useage is to call the function as a method on the `LazyFrame`'s `piot` namespace.
25-
__all__ = ["execute_on_ray"]
25+
__all__ = ("execute_on_ray",)
2626

2727

2828
def _partition_specs(

0 commit comments

Comments
 (0)