Replies: 8 comments 14 replies
-
I would imagine adding as I go, in the same way as I do with Numpy docstrings (which contradicts #3840 but we just haven't found time yet). |
Beta Was this translation helpful? Give feedback.
-
Also, while type hints were not "formalised" in some sense until relatively recently, I think that annotations and the typing library preceed python 3.6. Adding type annotations should not cause issues with running on 3.6 if that were necessary, they are not interpreted at runtime. Edit: Terrible grammar |
Beta Was this translation helpful? Give feedback.
-
Just had a lovely typing conversation with @rcomer regarding #4294, where being a very good However, this conversation raised quite a lot of open questions that really do need a group steer to make the process of adding typing in
Just thought I'd openly capture and share our conversation questions here... as I can only assume it might resonate for anyone else who has dipped their toe into the typing world for Have I missed or misrepresented anything @rcomer ? Ideally, it would be great to agree on a way forward using #4294 as a concrete use case and roll from there... |
Beta Was this translation helpful? Give feedback.
-
@jamesp also shared this link, which is a great read, see https://sethmlarson.dev/blog/2021-10-18/tests-arent-enough-case-study-after-adding-types-to-urllib3 |
Beta Was this translation helpful? Give feedback.
-
For the rendered docs, it looks like The advantages of typing discussed at #4272 seem to focus on how editors can interpret them, rather than documentation. I'm particularly not keen on how So, if we're voting, I think I'll vote for turning them off in the docs. |
Beta Was this translation helpful? Give feedback.
-
Today I learned that if you specify [Edit: assuming PyRight is actually Right...] |
Beta Was this translation helpful? Give feedback.
-
Closing following the creation of #5924 - we do want to do this one way or another |
Beta Was this translation helpful? Give feedback.
-
I reckon that this line is our first use of type-hints in Iris code (:+1: 🚀 @jamesp ).
This is consistent with dropping support for Python3.6
What do we feel about this, is there a case for adding type hints to major sections of the API ?
Perhaps we should also make a statement in the 3.2 whatsnew
Beta Was this translation helpful? Give feedback.
All reactions