[
https://issues.apache.org/jira/browse/FLINK-37912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083016#comment-18083016
]
Vaibhav S Gowda commented on FLINK-37912:
-----------------------------------------
I have submitted a PR for this issue:
https://github.com/apache/flink/pull/28239
> Typing the DataStream interfaces
> --------------------------------
>
> Key: FLINK-37912
> URL: https://issues.apache.org/jira/browse/FLINK-37912
> Project: Flink
> Issue Type: Improvement
> Components: API / Python
> Reporter: Joey Pereira
> Priority: Minor
> Labels: pull-request-available
> Attachments: image-2026-05-23-11-14-27-071.png
>
>
> I'm wondering if there's been any consideration about adding typing to the
> DataStream class as a generic. It would be amazing to have that type
> information carried through such that it's easier for users to lean on mypy
> to figure out issues ahead of time.
> Having started to use pyflink for the first time, I fumbled through a number
> of basic errors including things as simple as assuming the wrong data type
> passing through a {{DataStream}} (e.g. a tuple of k/v versus just a value).
> Obviously this is no easy task provided the Java/Python interop, but if there
> are creative ways this might be possible it would be great interface
> improvement!
> (cc [~shuyichen])
--
This message was sent by Atlassian Jira
(v8.20.10#820010)