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
$ flake8 --select=B906 t.pyt.py:5:5: B906 `visit_` function with no further calls to a visit function, which might prevent the `ast` visitor from properly visiting all nodes. Consider adding a call to `self.generic_visit(node)`.
In this case, libcst.CSTVisitor does not have a generic_visit method (and the error message explicitly talks about ast, which is confusing).
Should this rule make sure it only applies to ast visitors rather than other classes that have a visit_ method?
The text was updated successfully, but these errors were encountered:
I'm seeing some false-positives from B906 where we have node visitors that are not using the stdlib
ast
library:In this case,
libcst.CSTVisitor
does not have ageneric_visit
method (and the error message explicitly talks aboutast
, which is confusing).Should this rule make sure it only applies to ast visitors rather than other classes that have a
visit_
method?The text was updated successfully, but these errors were encountered: