Skip to content

Commit 61980c3

Browse files
author
Tom McCormick
committed
fix linter
1 parent b40e4e8 commit 61980c3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pyiceberg/io/pyarrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __init__(self, properties: Properties = EMPTY_DICT):
387387
super().__init__(properties=properties)
388388

389389
@staticmethod
390-
def parse_location(location: str, properties: Properties=EMPTY_DICT) -> Tuple[str, str, str]:
390+
def parse_location(location: str, properties: Properties = EMPTY_DICT) -> Tuple[str, str, str]:
391391
"""Return (scheme, netloc, path) for the given location.
392392
393393
Uses environment variables DEFAULT_SCHEME and DEFAULT_NETLOC

tests/io/test_pyarrow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,6 @@ def test_retry_strategy_not_found() -> None:
26422642

26432643
def test_parse_location_environment_defaults() -> None:
26442644
"""Test that parse_location uses environment variables for defaults."""
2645-
import os
26462645

26472646
from pyiceberg.io.pyarrow import PyArrowFileIO
26482647

@@ -2653,7 +2652,7 @@ def test_parse_location_environment_defaults() -> None:
26532652
assert path == "/foo/bar"
26542653

26552654
# Test with properties set
2656-
properties = dict()
2655+
properties = {}
26572656
properties["DEFAULT_SCHEME"] = "scheme"
26582657
properties["DEFAULT_NETLOC"] = "netloc:8000"
26592658

0 commit comments

Comments
 (0)