You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2024/10/04 22:36:52 UTC

(beam) branch master updated: sdks/python/apache_beam/io: add note on `output_fn` ctor arg to indicate that It is unused and only retained for backward compatibility (#32635)

This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new d4dd58b2c4c sdks/python/apache_beam/io: add note on `output_fn` ctor arg to  indicate that It is unused and only retained for backward compatibility (#32635)
d4dd58b2c4c is described below

commit d4dd58b2c4c4b5867ace4bdd34e1bcc32de963cc
Author: Mohamed Awnallah <69...@users.noreply.github.com>
AuthorDate: Sat Oct 5 01:36:44 2024 +0300

    sdks/python/apache_beam/io: add note on `output_fn` ctor arg to  indicate that It is unused and only retained for backward compatibility (#32635)
    
    In this commit, we add unused note on `output_fn` constructor
    argument in `WriteToFiles` class and only retained for backward
    compatibility.
    
    Signed-off-by: Mohamed Awnallah <mo...@gmail.com>
---
 sdks/python/apache_beam/io/fileio.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sdks/python/apache_beam/io/fileio.py b/sdks/python/apache_beam/io/fileio.py
index 378ecf71920..d9b2a204067 100644
--- a/sdks/python/apache_beam/io/fileio.py
+++ b/sdks/python/apache_beam/io/fileio.py
@@ -557,6 +557,8 @@ class WriteToFiles(beam.PTransform):
         class signature or an instance of FileSink to this parameter. If none is
         provided, a ``TextSink`` is used.
       shards (int): The number of shards per destination and trigger firing.
+      output_fn (callable, optional): A callable to process the output. This
+        parameter is currently unused and retained for backward compatibility.
       max_writers_per_bundle (int): The number of writers that can be open
         concurrently in a single worker that's processing one bundle.
     """