Skip to content

Commit

Permalink
Use dict instead of Mapping in Parsl#3111
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-S-Rosen committed Mar 25, 2024
1 parent c0827be commit 1772687
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parsl/dataflow/future_resolution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from collections.abc import Mapping
from concurrent.futures import Future
from functools import singledispatch

Expand Down Expand Up @@ -58,7 +57,7 @@ def unwrap(v):
return type_(map(unwrap, iterable))


@traverse_to_gather.register(Mapping)
@traverse_to_gather.register(dict)
def _(dictionary):
futures = []
for key, value in dictionary.items():
Expand All @@ -69,7 +68,7 @@ def _(dictionary):
return futures


@traverse_to_unwrap.register(Mapping)
@traverse_to_unwrap.register(dict)
def _(dictionary):
unwrapped_dict = {}
for key, value in dictionary.items():
Expand Down

0 comments on commit 1772687

Please sign in to comment.