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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to