dh-tech / undate-python

A Python library for working with fuzzy, partial, or otherwise uncertain dates
Apache License 2.0
8 stars 1 forks source link

Enforce types #29

Closed ColeDCrawford closed 2 months ago

ColeDCrawford commented 2 years ago

Next step after #11 is to enforce types to a greater or lesser degree with something like MyPy or Pydantic. Here's a list of options: https://github.com/ethanhs/python-typecheckers.

I don't have much personal experience with any of the above options; I use pyright through pylance in VS Code as the default,. I've heard the most about mypy and pydantic. pytype also looks intriguing. Maybe a spike to explore the top few options and then implement in precommit and CI?