rstudio / pins-python

https://rstudio.github.io/pins-python/
MIT License
50 stars 12 forks source link

What is the policy regarding contributing type annotations? #243

Closed nathanjmcdougall closed 2 months ago

nathanjmcdougall commented 2 months ago

Hi,

What is the policy for contributing to type annotations? Are such contributions welcome?

My motivation for having high-quality type annotations is as follows:

isabelizimm commented 2 months ago

This is an interesting question 👀 some thoughts:

I'm less concerned with "everything must be typed perfectly to appease a type checker" and more interested in "types are added to relieving developer/user pain." It's a subtle difference, sometimes the statements overlap, and unfortunately not clear direction, but to give some context to my worldview. 🌷 BUT I would say, setting up a type checker would be accepted/appreciated and then going one file/part of a file at a time after that is a reasonable way to start solving this!

nathanjmcdougall commented 2 months ago

Great, I agree with all of that 😃

I especially agree with this approach:

I'm less concerned with "everything must be typed perfectly to appease a type checker" and more interested in "types are added to relieving developer/user pain."

With the right configuration hopefully a balance can be struck.