Skip to content

Commit 79a5954

Browse files
committed
rewrite validator
1 parent 5616ef0 commit 79a5954

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyiceberg/table/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,10 @@ class SetLocationUpdate(TableUpdate):
474474
class SetPropertiesUpdate(TableUpdate):
475475
action: TableUpdateAction = TableUpdateAction.set_properties
476476
updates: Properties
477-
# validators
478-
transform_properties_dict_value_to_str = field_validator('updates', mode='before')(transform_dict_value_to_str)
477+
478+
@field_validator('updates', mode='before')
479+
def transform_properties_dict_value_to_str(cls, properties: Properties) -> Dict[str, str]:
480+
return transform_dict_value_to_str(properties)
479481

480482

481483
class RemovePropertiesUpdate(TableUpdate):

0 commit comments

Comments
 (0)