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
I think the simplest-to-implement fix is to let the user-specified config win and use I002 (that's what I do in the linked PR).
But it feels a little awkward because surely they wouldn't have meant to put that as the required import... Maybe in some future iteration a warning could be emitted in this case. At the moment, such a warning isn't quite precedented since it involves actually checking that the supplied config has a useless alias (as opposed to just reporting that two rules are known to always conflict, say). So I imagine some thought would have to go into it.
useless-import-alias
(PLC0414) conflicts withmissing-required-import
(I002) in Ruff 0.7.3 if the latter rule is configured to require an alias that the former rule considers useless.The text was updated successfully, but these errors were encountered: