[
https://issues.apache.org/jira/browse/FLINK-37912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vaibhav S Gowda updated FLINK-37912:
------------------------------------
Attachment: image-2026-05-23-11-14-27-071.png
> 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)