On Tuesday, November 25, 2025 at 4:26:15 AM UTC-6 Edward K. Ream wrote:

#4472 <https://github.com/leo-editor/leo-editor/issues/4472> now recommends 
trying to improve pyflakes. pyflakes's code is way simpler and faster than 
pyflakes.


I have updated #4472 as follows:

- Add  a short example where pyflakes fails to find obvious blunders 
involving missing attributes. 
- Add a visitor for `ast.ATTRIBUTE` nodes, including a trace that produces 
the expected output.

This is progress:

- I've demonstrated that I can make *and test* non-trivial changes to 
pyflakes.
- There is now a straightforward place to check for missing attributes.

Otoh, actually making such checks (correctly, hehe) might require many 
other changes.

*Summary*

It *might* be possible to help pyflakes find more errors, but a lot more 
work would be required. Indeed, much of the original design (for pylint, 
see the issue) would likely have to be repurposed for pyflakes. These are 
early days.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/90b450ad-0bb1-40de-baa9-c0007d3cbd62n%40googlegroups.com.

Reply via email to