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
Y030 detects Literal["foo"] | Literal["bar"], but not Literal["foo", Literal["bar"]]
I think the above case should be detected. I don't think a new rule is needed (it feels pretty much in line with Y030, although it might then count as a breaking change)
The text was updated successfully, but these errors were encountered:
Does this come up much? I'm not sure I've ever seen anybody try to add a nested Literal in typeshed. It might not be worth the added complexity to flake8-pyi's codebase to implement this
I think let's pass on this: I feel like the aim of flake8-pyi should be to flag common errors that often come up, and I'm not sure this falls into that bucket. But thanks for the feature suggestion! :D
Y030 detects
Literal["foo"] | Literal["bar"]
, but notLiteral["foo", Literal["bar"]]
I think the above case should be detected. I don't think a new rule is needed (it feels pretty much in line with Y030, although it might then count as a breaking change)
The text was updated successfully, but these errors were encountered: