quora / pyanalyze

A Python type checker
Apache License 2.0
333 stars 36 forks source link

Flag unused iterators #800

Closed JelleZijlstra closed 1 month ago

JelleZijlstra commented 1 month ago

The first version flagged all Iterators that were not used, but this had too many false positives, mostly an internal database iterator class that has def __iter__(self): return self.

Apart from those false positives, this found one harmless bug in the main codebase.