[
https://issues.apache.org/jira/browse/FLINK-15481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hequn Cheng closed FLINK-15481.
-------------------------------
Resolution: Fixed
> The type hint of `TableEnvironment#from_elements` in `table_environment.py`
> is incomplete
> -----------------------------------------------------------------------------------------
>
> Key: FLINK-15481
> URL: https://issues.apache.org/jira/browse/FLINK-15481
> Project: Flink
> Issue Type: Bug
> Components: API / Python
> Affects Versions: 1.10.0
> Reporter: Wei Zhong
> Assignee: Wei Zhong
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The type hint of `TableEnvironment#from_elements` in `table_environment.py`
> is incomplete:
> {code:java}
> :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
> :param verify_schema: Whether to verify the elements against the
> schema.
> :type verify_schema: bool
> :return: The result table.
> :rtype: pyflink.table.Table
> {code}
> According to current usage the `:type schema:` could also be list[str].
--
This message was sent by Atlassian Jira
(v8.3.4#803005)