-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add type annotations everywhere #43
Comments
Hi @tgpfeiffer, Thanks for reaching out. So happy to see, that people interested in this package. BTW, you don't happen to be Tobias Pfeffer – HPI class of 2011 – which whom I studied together, are you? Anyhow, regarding your question: Regarding your typing question. Version 4 comes with type hints. However, maybe not all places are annotated yet. We could consider adding mypy to lint type annotations. In any event, yes, please only contribute to v4. I am hoping to release it pretty soon, so I'd appreciate another set of eyes very much. I am curious though, why are you so eager to have type hints? Best |
No, that's not me ;-) (I'm also from Berlin, though.)
I think it'd be a killer feature for this library if you can use it in type-annotated Python code and can encode the data that you are working with in your function signatures, or in dataclasses that you are passing around.
OK, cool, let me have a look at the code and see what I can do :-) |
Sounds good, I will keep this ticket open to track how we are doing on complete type hinting support. |
Please see master...tgpfeiffer:43-type-ann for my additions. I have not sent a PR yet, because it is WIP and I wanted to discuss some points with you before. I have added some fairly strict mypy settings to the From here, there are three major issues as far as I can see.
Please let me know any thoughts you have, and what you think is a good way to proceed. |
Would you mind opening a PR in draft mode? That's what they are for, and they will make it easier for me to comment on your questions as well as on your code. Best, Joe |
@codingjoe Did you see my draft PR at #47? |
While researching about treating measurement data in a type-safe way in Python (like squants for Scala), I discovered this library, which seems very close to providing such a function. However, I think there are no type annotations yet.
I would like to contribute in that area, so where is a good place to do that? It seems that you are about to release a new major version, so probably it makes more sense to start on the latest master than on the 3.2 branch, right?
The text was updated successfully, but these errors were encountered: