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) ------------------------------------------------------------------------------------------------ [](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule) [](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule) [](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule) [](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