Joey Pereira created FLINK-37912: ------------------------------------ Summary: 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
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)