From 881e388f65da61a1bd7a3767e1309d6faeb1692a Mon Sep 17 00:00:00 2001 From: Sean Mackesey Date: Tue, 12 Mar 2024 08:14:07 -0400 Subject: [PATCH] [dagster-dask] Make dagster-dask support 2024.3.0 (#20428) ## Summary & Motivation `dask==2024.3.0` was just released and broke one of our tests, this fixes it by changing a `map()` to a list comprehension (`map` returns an iterator). ## How I Tested These Changes Existing test suite. --- python_modules/libraries/dagster-dask/dagster_dask/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_modules/libraries/dagster-dask/dagster_dask/utils.py b/python_modules/libraries/dagster-dask/dagster_dask/utils.py index 96b9611b31272..d8cca7705f04d 100644 --- a/python_modules/libraries/dagster-dask/dagster_dask/utils.py +++ b/python_modules/libraries/dagster-dask/dagster_dask/utils.py @@ -28,7 +28,7 @@ def normalize(name): name = camel_to_snake1.sub(r"\1_\2", name) return camel_to_snake2.sub(r"\1_\2", name).lower() - return map(normalize, names) + return [normalize(n) for n in names] DataFrameUtilities = {