-
Notifications
You must be signed in to change notification settings - Fork 168
codestyle: Type annotate various modules and add them to mypy #1237
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
codestyle: Type annotate various modules and add them to mypy #1237
Conversation
4c6ace3
to
f9c7fef
Compare
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f9c7fef
to
22ce83f
Compare
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
22ce83f
to
9222f81
Compare
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Type-annotate ca_util.py and also minimally annotate revocation_notifier.py so ca_util.py passed mypy checks. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
9222f81
to
f65039f
Compare
@@ -498,7 +511,7 @@ def read_private(warn=False): | |||
return {"revoked_keys": [], "ca": b""}, base64.b64encode(crypto.generate_random_key()).decode() | |||
|
|||
|
|||
def main(argv=sys.argv): # pylint: disable=dangerous-default-value | |||
def main(argv: List[str] = sys.argv) -> None: # pylint: disable=dangerous-default-value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this disable should be a TODO. This is very dangerous indeed.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
…mypy Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
4dbaa9b
to
0ac97b3
Compare
This PR type-annotates various modules and adds them to mypy.