-
Notifications
You must be signed in to change notification settings - Fork 39
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
Interest In Type Annotations #31
Comments
We're definitely interested in type annotations — Python 2 is not really supported in the master branch anymore, as we switched to Python 3.5 at a minimum, which means it still requires comment type annotations. I'd go for commented types and |
Sorry for the late response, I am starting to work on a PR that will add type annotations. As for the style, we are going for commented types (inlined with the code)? Also, I do not know what If we are wanting to use a different type checker, let me know. I can also add the type checking to the CI workflow. Also, are we wanting to add type annotations for the tests as well, or just the source code? Thanks! |
Commented types inline are needed, as we still support Python <3.7 and that won't take the inline types just yet. As for
If you can get the tests to be typechecked, even better, but I wouldn't be holding my breath. I have had to fix assertion interfaces before, and would be surprise if no issue is left with those. |
Hi! I was wondering if there was any interest in adding type annotations to this library.
I saw on README that python2 is still supported, so this eliminates the option of having inline type annotations. As an alternative, we could have use type comments:
Or make seperate
.pyi
type stub files:These files could be stored in this repository, or stored in typeshed. which allows type checkers access to type stubs for lots of standard and 3rd party libraries.
Let me know what you guys think! I dont mind putting in the effort, just thought I might ask before I get anything started.
The text was updated successfully, but these errors were encountered: