You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/08/10 18:10:19 UTC

[iceberg] branch master updated: Python: Fix docstring (#5489)

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

blue 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 c77d3aa754 Python: Fix docstring (#5489)
c77d3aa754 is described below

commit c77d3aa754deb21a5e7942f4bac0481aa2c48d2b
Author: Fokko Driesprong <fo...@apache.org>
AuthorDate: Wed Aug 10 20:10:14 2022 +0200

    Python: Fix docstring (#5489)
    
    Follow up of https://github.com/apache/iceberg/pull/5465
---
 python/pyiceberg/catalog/__init__.py | 6 +++---
 python/pyiceberg/catalog/hive.py     | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/python/pyiceberg/catalog/__init__.py b/python/pyiceberg/catalog/__init__.py
index 3282c1bbfb..53c8b0b3fa 100644
--- a/python/pyiceberg/catalog/__init__.py
+++ b/python/pyiceberg/catalog/__init__.py
@@ -75,10 +75,10 @@ class Catalog(ABC):
         Args:
             identifier (str | Identifier): Table identifier.
             schema (Schema): Table's schema.
-            location (str): Location for the table. Optional Argument.
+            location (str | None): Location for the table. Optional Argument.
             partition_spec (PartitionSpec): PartitionSpec for the table.
             sort_order (SortOrder): SortOrder for the table.
-            properties (Properties): Table properties that can be a string based dictionary. Optional Argument.
+            properties (Properties): Table properties that can be a string based dictionary.
 
         Returns:
             Table: the created table instance
@@ -215,7 +215,7 @@ class Catalog(ABC):
         Args:
             namespace (str | Identifier): Namespace identifier
             removals (Set[str]): Set of property keys that need to be removed. Optional Argument.
-            updates (Properties): Properties to be updated for the given namespace. Optional Argument.
+            updates (Properties): Properties to be updated for the given namespace.
 
         Raises:
             NoSuchNamespaceError: If a namespace with the given name does not exist
diff --git a/python/pyiceberg/catalog/hive.py b/python/pyiceberg/catalog/hive.py
index 737938208b..f8ad209fbd 100644
--- a/python/pyiceberg/catalog/hive.py
+++ b/python/pyiceberg/catalog/hive.py
@@ -224,7 +224,7 @@ class HiveCatalog(Catalog):
             location: Location for the table. Optional Argument.
             partition_spec: PartitionSpec for the table.
             sort_order: SortOrder for the table.
-            properties: Table properties that can be a string based dictionary. Optional Argument.
+            properties: Table properties that can be a string based dictionary.
 
         Returns:
             Table: the created table instance
@@ -425,7 +425,7 @@ class HiveCatalog(Catalog):
         Args:
             namespace: Namespace identifier
             removals: Set of property keys that need to be removed. Optional Argument.
-            updates: Properties to be updated for the given namespace. Optional Argument.
+            updates: Properties to be updated for the given namespace.
 
         Raises:
             NoSuchNamespaceError: If a namespace with the given name does not exist