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
The rule FA102 (future-required-type-annotation) is very useful when writing code in a code base that support python <3.10. The only issue with this rule is that it only tells you that a from __future__ import annotations is required, it doesn't have any way of applying the suggested fix.
Please add a suggestion or fix for this rule to automatically add the missing from __future__ import annotations.
Code example:
# py 3.8 code basedeffoo(l: list[int]): ...
The text was updated successfully, but these errors were encountered:
## Summary
We already support inserting imports for `I002` -- this PR just adds the
same fix for `FA102`, which is explicitly about `from __future__ import
annotations`.
Closes#8682.
The rule FA102 (future-required-type-annotation) is very useful when writing code in a code base that support python <3.10. The only issue with this rule is that it only tells you that a
from __future__ import annotations
is required, it doesn't have any way of applying the suggested fix.Please add a suggestion or fix for this rule to automatically add the missing
from __future__ import annotations
.Code example:
The text was updated successfully, but these errors were encountered: