Type hints (mypy) in fastai2?

I really enjoy studying the codebase of the fastai library as a way to learn new software engineering practices and ideas. One of the things I noticed is compared to fastai, the fastai2 library doesn’t seem to make as much use of type hints (mypy).

Is there a reason for this, or just something that will be added later on? Just asking for my own learning on potential tradeoffs etc. Thanks

Bumping this as I’d also be interested in the rationale for reducing the use of type hints in fastai2. Thanks in advance.

I think you can use type hints but it’s just not everywhere see fastcore’s Params (you can find it in the docs)

1 Like