This is an automated email from the ASF dual-hosted git repository.
hequn pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.10 by this push:
new c508e68 [FLINK-15481][python] Add `list[str]` to the type hint of
parameter "schema" in `TableEnvironment#from_elements`.
c508e68 is described below
commit c508e68bf210a3cbdefab83e4c8a59ca8bccb466
Author: Wei Zhong <[email protected]>
AuthorDate: Mon Jan 6 11:26:03 2020 +0800
[FLINK-15481][python] Add `list[str]` to the type hint of parameter
"schema" in `TableEnvironment#from_elements`.
---
flink-python/pyflink/table/table_environment.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flink-python/pyflink/table/table_environment.py
b/flink-python/pyflink/table/table_environment.py
index 9faf81b..cdb29d5 100644
--- a/flink-python/pyflink/table/table_environment.py
+++ b/flink-python/pyflink/table/table_environment.py
@@ -938,7 +938,7 @@ class TableEnvironment(object):
:param elements: The elements to create a table from.
:type elements: list
:param schema: The schema of the table.
- :type schema: pyflink.table.types.DataType
+ :type schema: pyflink.table.types.DataType or list[str]
:param verify_schema: Whether to verify the elements against the
schema.
:type verify_schema: bool
:return: The result table.