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
String annotations are sometimes required here when Any is used with a generic type that is conditionally imported as illustrated in #76. Such an annotation must be a string, which means that Any must be a string too. Please consider treating the bound of a TypeVar as an annotation.
The text was updated successfully, but these errors were encountered:
Running pyflakes on your example code also finds that typing.Any is unused. Since autoflake relies on pyflakes, I suspect this is a pyflakes issue -- maybe report this there?
This works great:
But this doesn't work:
String annotations are sometimes required here when
Any
is used with a generic type that is conditionally imported as illustrated in #76. Such an annotation must be a string, which means thatAny
must be a string too. Please consider treating the bound of aTypeVar
as an annotation.The text was updated successfully, but these errors were encountered: