Skip to content

Commit 2a1bf5c

Browse files
committed
align return type with Union
1 parent 1d37f48 commit 2a1bf5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyiceberg/partitioning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _(type: IcebergType, value: Optional[time]) -> Optional[int]:
467467

468468

469469
@_to_partition_representation.register(UUIDType)
470-
def _(type: IcebergType, value: Optional[Union[uuid.UUID,int]]) -> Optional[str|int]:
470+
def _(type: IcebergType, value: Optional[Union[uuid.UUID,int]]) -> Optional[Union[str,int]]:
471471
if value is None:
472472
return None
473473
if isinstance(value, uuid.UUID):

0 commit comments

Comments
 (0)