Skip to content

Commit 531e526

Browse files
committed
fix linting error
1 parent 35cf34a commit 531e526

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pyiceberg/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,9 +1617,11 @@ def promote(file_type: IcebergType, read_type: IcebergType) -> IcebergType:
16171617
else:
16181618
raise ResolveError(f"Cannot promote {file_type} to {read_type}")
16191619

1620+
16201621
@promote.register(UnknownType)
16211622
def _(file_type: UnknownType, read_type: IcebergType) -> IcebergType:
1622-
return read_type # Per V3 Spec, "Unknown" can be promoted to any type
1623+
return read_type # Per V3 Spec, "Unknown" can be promoted to any type
1624+
16231625

16241626
@promote.register(IntegerType)
16251627
def _(file_type: IntegerType, read_type: IcebergType) -> IcebergType:

tests/test_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
TimestampType,
5555
TimestamptzType,
5656
TimeType,
57+
UnknownType,
5758
UUIDType,
58-
UnknownType
5959
)
6060

6161
TEST_PRIMITIVE_TYPES = [
@@ -75,7 +75,7 @@
7575
FixedType(16),
7676
FixedType(20),
7777
UUIDType(),
78-
UnknownType()
78+
UnknownType(),
7979
]
8080

8181

0 commit comments

Comments
 (0)