kiudee / cs-ranking

Context-sensitive ranking and choice in Python with PyTorch
https://cs-ranking.readthedocs.io
Apache License 2.0
66 stars 15 forks source link

Look into typing with mypy #132

Open timokau opened 4 years ago

timokau commented 4 years ago

See https://github.com/kiudee/cs-ranking/pull/129#issuecomment-636857634. We already declare many types in docstrings. Using mypy would require us to formalize this a bit more, with the added bonus of static guarantees and better tooling support (such as enhanced tab completion).