[ 
https://issues.apache.org/jira/browse/FLINK-18997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180427#comment-17180427
 ] 

Hequn Cheng commented on FLINK-18997:
-------------------------------------

Resolved in 1.12.0 via 0522827b27eb6a1351f9a2ebafc38eb58dbf1e57 and 
183f4c1ccf0074aa8138f1f1c88bdeb68cc9d4f4

> Rename type_info to result_type to make it more clear
> -----------------------------------------------------
>
>                 Key: FLINK-18997
>                 URL: https://issues.apache.org/jira/browse/FLINK-18997
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / Python
>            Reporter: Hequn Cheng
>            Assignee: Hequn Cheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>
> Currently, the name of result type parameter for Python DataStream.map() and 
> flat_map() is type_info. 
> {code}
>     def map(self, func: Union[Callable, MapFunction], type_info: 
> TypeInformation = None) \
>             -> 'DataStream':
> {code}
> I think rename it to result_type would be more clear for users. 
> {code}
>     def map(self, func: Union[Callable, MapFunction], result_type: 
> TypeInformation = None) \
>             -> 'DataStream':
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to