-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[WIP] Do not allow untyped calls anywhere in the mypy config #13699
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
base: master
Are you sure you want to change the base?
Conversation
@@ -102,14 +103,13 @@ def _check(name, input, id_dict, output, key, as_text_output): | |||
# except NoOldIdError: | |||
# id_actual.append(None) | |||
|
|||
res = [True] |
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.
This was redefining a variable, so I just renamed it here to create a new variable.
f7fa3ab
to
a0e8db1
Compare
for i in range(1, _max_id + 1): | ||
res.append(id_expected[i] == id_actual[i]) | ||
res_bools = [True] | ||
res_bools.extend(id_expected[i] == id_actual[i] for i in range(1, _max_id + 1)) |
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.
ruff
made/required this change
a0e8db1
to
807e144
Compare
807e144
to
7901b72
Compare
9bb9adf
to
3d9813d
Compare
@adamtheturtle is this ready? MyPy passes. |
@AA-Turner I kept this as WIP as it adds type ignores that I think can be avoided. |
For everything other than the simplest changes, I decided to add
type: ignore
comments rather than fixing the underlying issues. This adds 8 type ignores, with the trade-off that now a lot more of the relevant files is type checked.