Type hints #376
StefanBRas
started this conversation in
General
Type hints
#376
Replies: 1 comment 5 replies
-
Hmmm, unfortunately I'm not much a fan of type hints, personally. I wouldn't rule it out entirely (maybe the type system has improved since I last looked into it) but I also wouldn't do it or take a PR just now. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to hear about the possibility of adding type hints to the codebase. I saw the issue about
py.typed
but wasn't sure how much I should read into it.For me personally it would make it more ergonomic to work with. Not necessarily the whole codebase, but adding type hints to the parameters and return types of public functions would help a lot. It looks like the information is already present in many of the docstrings.
I'm willing to do that PR if you'd accept it. I know I could add it as type stubs, but that's more complexity and more room for errors
Beta Was this translation helpful? Give feedback.
All reactions