You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import shlex
trash_bin = "garbage".join(shlex.quote(a) for a in ["some", "quotable strings"])
If I run pyupgrade --py310-plus on this, I get trash_bin = shlex.join(["some", "quotable strings"]). But this is not equivalent. This is a very contrived case, but there are real cases I could envision, like ", ", where one might want to keep the str.join
pyupgrade==3.15.1
The text was updated successfully, but these errors were encountered:
Consider the following:
If I run
pyupgrade --py310-plus
on this, I gettrash_bin = shlex.join(["some", "quotable strings"])
. But this is not equivalent. This is a very contrived case, but there are real cases I could envision, like", "
, where one might want to keep thestr.join
pyupgrade==3.15.1
The text was updated successfully, but these errors were encountered: