Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang committed Oct 8, 2024
1 parent fb416c4 commit 53255b6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pyiceberg/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ def can_transform(self, source: IcebergType) -> bool:

@abstractmethod
def result_type(self, source: IcebergType) -> IcebergType:
"""
Returns the `IcebergType` produced by this transform given a source type.
"""Return the `IcebergType` produced by this transform given a source type.
This method defines both the physical and display representation of the partition field.
Expand Down Expand Up @@ -527,10 +526,10 @@ def can_transform(self, source: IcebergType) -> bool:
return isinstance(source, (DateType, TimestampType, TimestamptzType))

def result_type(self, source: IcebergType) -> IcebergType:
"""
The physical representation conforms to the Iceberg spec as DateType is internally
converted to int. The DateType returned here provides a more human-readable way to
display the partition field.
"""Return the result type of a day transform.
The physical representation conforms to the Iceberg spec as DateType is internally converted to int.
The DateType returned here provides a more human-readable way to display the partition field.
"""
return DateType()

Expand Down

0 comments on commit 53255b6

Please sign in to comment.