jrmccluskey commented on code in PR #40680:
URL: https://github.com/apache/beam/pull/40680#discussion_r4326551792


##########
CHANGES.md:
##########
@@ -104,6 +104,7 @@
 * (Python) DaskRunner now preserves outputs emitted by `DoFn.finish_bundle()` 
instead of silently dropping them 
([#40519](https://github.com/apache/beam/issues/40519)).
 * (Python) BigQuery streaming inserts now reset the retry budget and backoff 
for each batch instead of sharing them across a bundle 
([#39995](https://github.com/apache/beam/pull/39995)).
 * (Python) State write failures reported by portable runners now fail the 
bundle instead of silently losing state updates 
([#39992](https://github.com/apache/beam/pull/39992)).
+* (Python) Type inference now gives the right type for a slice of a fixed-size 
tuple, such as `row[1:]` in `beam.Map(lambda row: row[1:])`. The slice used to 
keep the type of the whole tuple, which could make a following `CombinePerKey` 
fail with a `TypeCheckError` or encode elements with the wrong coder 
([#20899](https://github.com/apache/beam/issues/20899)).

Review Comment:
   This is a hair verbose, let's streamline a bit and let the context live in 
the linked bug.
   
   ```suggestion
   * (Python) Type inference now gives the right type for a slice of a 
fixed-size tuple, such as `row[1:]` in `beam.Map(lambda row: row[1:])`. 
([#20899](https://github.com/apache/beam/issues/20899)).
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to