Skip to content

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
@AA-Turner
Copy link
Member

@adamtheturtle is this ready? MyPy passes.

@adamtheturtle
Copy link
Contributor Author

@AA-Turner I kept this as WIP as it adds type ignores that I think can be avoided.

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.

2 participants