jrmccluskey commented on code in PR #38331:
URL: https://github.com/apache/beam/pull/38331#discussion_r3163497268
##########
sdks/python/apache_beam/internal/dill_pickler.py:
##########
@@ -50,7 +48,7 @@
settings = {'dill_byref': None}
-patch_save_code = sys.version_info >= (3, 10) and dill.__version__ == "0.3.1.1"
+patch_save_code = dill.__version__ == "0.3.1.1"
Review Comment:
Beam does not support any Python version older than 3.10.
##########
sdks/python/apache_beam/internal/dill_pickler.py:
##########
@@ -315,7 +313,7 @@ def save_module(pickler, obj):
# Pickle module dictionaries (commonly found in lambda's globals)
# by referencing their module.
old_save_module_dict = dill.dill.save_module_dict
- known_module_dicts: Dict[int, Tuple[types.ModuleType, Dict[str, Any]]] = {}
+ known_module_dicts: dict[int, tuple[types.ModuleType, dict[str, Any]]] = {}
Review Comment:
Beam does not support any Python version older than 3.10.
--
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]