Applying rule UP032 in favour of UP030/31 #7810
-
Hey, as I was recently upgrading codebase, I became aware of unusual behavior in certain rules in pyupgrade. I didn't find a thread about similiar topic, so I decided to open one here. When I applied rule UP030/31, I expected rule UP032 to be applied in next call I made. But this wasn't the case at all times - actually it was pretty inconsistent when it was applied (I'm not aware of any specific rule). There is not additional information about applying these rules together, but my assumption was, that rules UP030/31 breaks rule UP032 and therefore change should be applied. Is there some explanation for this behavior? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Before I respond in more detail, are you able to provide an example of a string that was migrated via 30/31, but not 32? |
Beta Was this translation helpful? Give feedback.
Okay, that specific issue has been resolved on
main
. Hopefully that helps!