roboflow/template-python

[Repo] Should we use types and check with mypi?

FrancescoSaverioZuppichini opened this issue · 2 comments

We can decide if it makes sense for us to force ourself to use types hints and check them with mypi

I don't have super strong opinions about this but sometimes it feels like they can get in the way of rapid development. And since they aren't enforced in any way, they are essentially just code comments which can be hard to keep up to date when used extensively.

On the flip side, I can see how it makes code a lot easier to read.

I feel the same. One thing that is kinda of not so nice is when you are using packages that are not mypi friendly, then you have to tell him to not check them etc.

Probably we can agree upon using them for function/methods parameters/returns to make it easier sharing code between us.

Looking forward to hear @Jacobsolawetz opinion.