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 53bba283ce0 Fix typevar reduce for PYPI. (#36299)
53bba283ce0 is described below

commit 53bba283ce0cf81fcf2cdcb32bbed34a66bcc07c
Author: claudevdm <[email protected]>
AuthorDate: Fri Sep 26 14:56:25 2025 -0400

    Fix typevar reduce for PYPI. (#36299)
---
 sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py 
b/sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py
index 5a9d89430fd..e4fbf0c72f8 100644
--- a/sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py
+++ b/sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py
@@ -1483,8 +1483,7 @@ class Pickler(pickle.Pickler):
 
     def save_typevar(self, obj, name=None):
       """Handle TypeVar objects with access to config."""
-      return self._save_reduce_pickle5(
-          *_typevar_reduce(obj, self.config), obj=obj)
+      return self.save_reduce(*_typevar_reduce(obj, self.config), obj=obj)
 
     dispatch[typing.TypeVar] = save_typevar
 

Reply via email to