open-spaced-repetition / py-fsrs

Python Package for FSRS
https://pypi.org/project/fsrs/
MIT License
147 stars 23 forks source link

add more type annotation #55

Closed joshdavham closed 3 months ago

joshdavham commented 3 months ago

I went and added some more type annotations to the source code to make it a bit easier to grok.

Additionally, because the pyproject.toml specifies that py-fsrs requires at least python 3.9, I replaced the Tuple and Dict type annotations with tuple and dict type annotations, which are equivalent, but don't require an import statement.

Let me know if there are any issues/questions