xliee opened a new pull request, #32783:
URL: https://github.com/apache/beam/pull/32783

   This pull request includes changes to the `expand` method in the 
`sdks/python/apache_beam/transforms/core.py` file to simplify the code and 
remove an unnecessary inner class. The most important changes include the 
removal of the `MaybeReshuffle` inner class and the restructuring of the 
`expand` method.
   
   Code simplification and restructuring:
   
   * 
[`sdks/python/apache_beam/transforms/core.py`](diffhunk://#diff-d0f4285765492590eff7626123c4dec84a31c45495db77aa1f48153fa97d49ffL3938-R3946):
 Removed the `MaybeReshuffle` inner class and restructured the `expand` method 
to directly use `pcol` with `Reshuffle` if necessary.
   * 
[`sdks/python/apache_beam/transforms/core.py`](diffhunk://#diff-d0f4285765492590eff7626123c4dec84a31c45495db77aa1f48153fa97d49ffL3938-R3946):
 Adjusted the return statement in the `expand` method to simplify the pipeline 
construction.
   
   Minor cleanup:
   
   * 
[`sdks/python/apache_beam/transforms/core.py`](diffhunk://#diff-d0f4285765492590eff7626123c4dec84a31c45495db77aa1f48153fa97d49ffL3928):
 Removed an unnecessary blank line in the `get_output_type` method.Unnecessary 
class MaybeReshuffle which fails under certain conditions.
   
   GitHub Actions Tests Status (on master branch)
   
------------------------------------------------------------------------------------------------
   [![Build python source distribution and 
wheels](https://github.com/apache/beam/workflows/Build%20python%20source%20distribution%20and%20wheels/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
   [![Python 
tests](https://github.com/apache/beam/workflows/Python%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Java 
tests](https://github.com/apache/beam/workflows/Java%20Tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
   [![Go 
tests](https://github.com/apache/beam/workflows/Go%20tests/badge.svg?branch=master&event=schedule)](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
   
   See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more 
information about GitHub Actions CI or the [workflows 
README](https://github.com/apache/beam/blob/master/.github/workflows/README.md) 
to see a list of phrases to trigger workflows.
   


-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to