Commit Graph

4 Commits

Author SHA1 Message Date
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Bas van Beek
7c37d6117d Allow reversed to take any object implementing __len__ and __getitem__ (#5820)
`reversed` is currently annotated as accepting either a `Sequence` or objects implementing the `__reversed__` protocol.
This however is too strict as, per its [docs](https://docs.python.org/3/library/functions.html#reversed), it can take any object that implements `__len__` and `__getitem__`.
2021-07-29 07:48:14 -07:00
Christopher Dignam
3aa4c67839 simplify vector type for Annoy (#5455)
Sequence was unnecessarily specific and prevents numpy type stubs from working with this package. Numpy ndarray isn't compatible with Sequence since it doesn't have __reversed__ method.
2021-05-15 02:29:31 +02:00
Christopher Dignam
30154447e7 add stubs for "annoy" (#5319)
This change adds type stubs for the "annoy" package: https://github.com/spotify/annoy
2021-05-03 20:49:52 -07:00