Skip to content

Commit 9bfb7e8

Browse files
author
Tom McCormick
committed
fix linter
1 parent 731075a commit 9bfb7e8

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
@@ -392,7 +392,7 @@ def __init__(self, properties: Properties = EMPTY_DICT):
392392
super().__init__(properties=properties)
393393

394394
@staticmethod
395-
def parse_location(location: str, properties: Properties=EMPTY_DICT) -> Tuple[str, str, str]:
395+
def parse_location(location: str, properties: Properties = EMPTY_DICT) -> Tuple[str, str, str]:
396396
"""Return (scheme, netloc, path) for the given location.
397397
398398
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
@@ -2788,7 +2788,6 @@ def _expected_batch(unit: str) -> pa.RecordBatch:
27882788
def test_parse_location_environment_defaults():
27892789

27902790
"""Test that parse_location uses environment variables for defaults."""
2791-
import os
27922791

27932792
from pyiceberg.io.pyarrow import PyArrowFileIO
27942793

@@ -2799,7 +2798,7 @@ def test_parse_location_environment_defaults():
27992798
assert path == "/foo/bar"
28002799

28012800
# Test with properties set
2802-
properties = dict()
2801+
properties = {}
28032802
properties["DEFAULT_SCHEME"] = "scheme"
28042803
properties["DEFAULT_NETLOC"] = "netloc:8000"
28052804

0 commit comments

Comments
 (0)