Fokko commented on code in PR #2148:
URL: https://github.com/apache/iceberg-python/pull/2148#discussion_r2164079794
##########
pyiceberg/catalog/rest/__init__.py:
##########
@@ -178,12 +178,12 @@ class RegisterTableRequest(IcebergBaseModel):
class ConfigResponse(IcebergBaseModel):
- defaults: Properties = Field()
+ defaults: Optional[Properties] = Field(default={})
Review Comment:
I think we have to use the factory here:
```suggestion
defaults: Optional[Properties] = Field(default_factory=dict)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]