Commit Graph

6 Commits

Author SHA1 Message Date
Tzu-ping Chung 761433cee8 Eliminate len() usage in tests 2020-10-13 16:12:11 +08:00
Tzu-ping Chung 17d0086ea2 Do this all over again 2020-10-13 16:12:11 +08:00
Tzu-ping Chung 6e3d56897b Always return the installed version 2020-10-13 16:12:11 +08:00
Tzu-ping Chung 01c9b6cf25 Cache results and remove unused implementation 2020-10-13 16:06:00 +08:00
Tzu-ping Chung a270ca5616 Mypy is wrong 2020-10-13 16:06:00 +08:00
Tzu-ping Chung 8326148149 Implement "lazy sequence" to avoid Internet
find_matches() is modified to return a special type that implements
the sequence protocol (instead of a plain list). This special sequence
type tries to use the installed candidate as the first element if
possible, and only access indexes when the installed candidate is
considered unsatisfactory.
2020-10-13 16:06:00 +08:00