Skip to content

Commit 028d5a5

Browse files
committed
lint
1 parent de3b498 commit 028d5a5

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

mkdocs/docs/configuration.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ PyIceberg uses [S3FileSystem](https://arrow.apache.org/docs/python/generated/pya
200200
| s3.force-virtual-addressing | True | Whether to use virtual addressing of buckets. This is set to `True` by default as OSS can only be accessed with virtual hosted style address. |
201201
| s3.anonymous | True | Configure whether to use anonymous connection. If False (default), uses key/secret if configured or standard AWS configuration methods. |
202202

203-
204203
<!-- markdown-link-check-enable-->
205204

206205
### Hugging Face

pyiceberg/io/fsspec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
OutputStream,
8585
)
8686
from pyiceberg.typedef import Properties
87-
from pyiceberg.utils.properties import get_first_property_value, get_header_properties, property_as_bool, strtobool
87+
from pyiceberg.types import strtobool
88+
from pyiceberg.utils.properties import get_first_property_value, get_header_properties, property_as_bool
8889

8990
logger = logging.getLogger(__name__)
9091

pyiceberg/io/pyarrow.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,14 @@
180180
TimeType,
181181
UnknownType,
182182
UUIDType,
183+
strtobool,
183184
)
184185
from pyiceberg.utils.concurrent import ExecutorFactory
185186
from pyiceberg.utils.config import Config
186187
from pyiceberg.utils.datetime import millis_to_datetime
187188
from pyiceberg.utils.decimal import unscaled_to_decimal
188189
from pyiceberg.utils.deprecated import deprecation_message
189-
from pyiceberg.utils.properties import get_first_property_value, property_as_bool, property_as_int, strtobool
190+
from pyiceberg.utils.properties import get_first_property_value, property_as_bool, property_as_int
190191
from pyiceberg.utils.singleton import Singleton
191192
from pyiceberg.utils.truncate import truncate_upper_bound_binary_string, truncate_upper_bound_text_string
192193

@@ -2800,9 +2801,11 @@ def _determine_partitions(spec: PartitionSpec, schema: Schema, arrow_table: pa.T
28002801
functools.reduce(
28012802
operator.and_,
28022803
[
2803-
pc.field(partition_field_name) == unique_partition[partition_field_name]
2804-
if unique_partition[partition_field_name] is not None
2805-
else pc.field(partition_field_name).is_null()
2804+
(
2805+
pc.field(partition_field_name) == unique_partition[partition_field_name]
2806+
if unique_partition[partition_field_name] is not None
2807+
else pc.field(partition_field_name).is_null()
2808+
)
28062809
for field, partition_field_name in zip(spec.fields, partition_fields)
28072810
],
28082811
)

0 commit comments

Comments
 (0)