-
Notifications
You must be signed in to change notification settings - Fork 50
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 #358
Comments
The other modules used in TUF (metadata api) are:
So I guess those should be next in line (but I think we could also enable checks in TUF module-by-module if there are trickier modules that can't be annotated in the next weeks) |
Also, I think we need to add a |
* New upstream release includes among other things: - bug fix in the Signer abstract base class (secure-systems-lab#348) - machinery for static type checking with mypy (secure-systems-lab#361) - type annotations for a few modules (progress tracked in secure-systems-lab#358) - enhancements in the Signature class (secure-systems-lab#383, secure-systems-lab#387) * d/control: - bump standards version to 4.6.0.1 Signed-off-by: Lukas Puehringer <[email protected]>
3 years later this is still true 😂 |
We should type annotate our functions:
This is companion to #357 (using mypy in securesystemslib): I think the process goes like this (although it's partially speculation: I've not tried this yet)
Repeat steps for each module
Using mypy with an existing codebase may be useful: we may want to try tools to automatically generate type annotations: they might work well for this sort of code
The text was updated successfully, but these errors were encountered: