Skip to content

[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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamtheturtle
Copy link
Contributor

@adamtheturtle adamtheturtle commented Jun 25, 2025

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.

@@ -102,14 +103,13 @@ def _check(name, input, id_dict, output, key, as_text_output):
# except NoOldIdError:
# id_actual.append(None)

res = [True]
Copy link
Contributor Author

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.

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))
Copy link
Contributor Author

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

@adamtheturtle adamtheturtle marked this pull request as draft June 25, 2025 09:31
@adamtheturtle adamtheturtle changed the title Do not allow untyped calls anywhere in the mypy config [WIP] Do not allow untyped calls anywhere in the mypy config Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant