Skip to content

Commit cea1f96

Browse files
authored
align return type with Union
1 parent db445e1 commit cea1f96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)