Skip to content

Commit eba13f5

Browse files
committed
mark a TODO
1 parent 1d89a60 commit eba13f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unpythonic/collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def doit(x):
117117
return ctor(doit(elt) for elt in x)
118118
elif isinstance(x, Set):
119119
# dict_items cannot be instantiated, so return a regular set if we're asked to mogrify one
120+
# TODO: is it possible to get the owner dict and mogrify it instead?
121+
# (this case usually turns up in "with curry" with somedict.items())
120122
ctor = type(x) if not isinstance(x, _dictitems_type) else set
121123
return ctor({doit(elt) for elt in x})
122124
return func(x) # atom

0 commit comments

Comments
 (0)