Skip to content

Commit 604b3db

Browse files
committed
chore(ruff): replace set(generator) with {set comprehension}
The comprehension seems to be the more expected way to express. Not sure if there is a performance difference.
1 parent a7365e6 commit 604b3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def index():
360360

361361
if isinstance(methods, basestring): # convert string to tuple
362362
methods = (methods,)
363-
methods = set(item.upper() for item in methods)
363+
methods = {item.upper() for item in methods}
364364

365365
# convert a rule to a compiled regex object
366366
# so /data/<:class>/<:id> will become

0 commit comments

Comments
 (0)