Python: Fix docstring (#5489)
Follow up of https://github.com/apache/iceberg/pull/5465
diff --git a/python/pyiceberg/catalog/__init__.py b/python/pyiceberg/catalog/__init__.py
index 3282c1b..53c8b0b 100644
--- a/python/pyiceberg/catalog/__init__.py
+++ b/python/pyiceberg/catalog/__init__.py
@@ -75,10 +75,10 @@
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 @@
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 7379382..f8ad209 100644
--- a/python/pyiceberg/catalog/hive.py
+++ b/python/pyiceberg/catalog/hive.py
@@ -224,7 +224,7 @@
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 @@
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