This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new a2eb83863c Python: Add default for `load_catalog` API (#8330)
a2eb83863c is described below

commit a2eb83863c1450e73844f0b79a40ffd45a4e838d
Author: Abhishek <[email protected]>
AuthorDate: Thu Aug 17 09:06:44 2023 -0700

    Python: Add default for `load_catalog` API (#8330)
---
 python/pyiceberg/catalog/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyiceberg/catalog/__init__.py 
b/python/pyiceberg/catalog/__init__.py
index ff0d5095c8..ca151594a1 100644
--- a/python/pyiceberg/catalog/__init__.py
+++ b/python/pyiceberg/catalog/__init__.py
@@ -164,7 +164,7 @@ def infer_catalog_type(name: str, catalog_properties: 
RecursiveDict) -> Optional
     )
 
 
-def load_catalog(name: Optional[str], **properties: Optional[str]) -> Catalog:
+def load_catalog(name: Optional[str] = None, **properties: Optional[str]) -> 
Catalog:
     """Load the catalog based on the properties.
 
     Will look up the properties from the config, based on the name.

Reply via email to