Skip to content
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

Fix syntax of mypy ignore comments #1646

Merged
merged 1 commit into from Mar 21, 2023
Merged

Fix syntax of mypy ignore comments #1646

merged 1 commit into from Mar 21, 2023

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Mar 15, 2023

Description

Per the mypy documentation[1], the syntax is:
# type: ignore[error-code], with no space between ignore and [. It seems like mypy is fine with the space, but other tools (e.g. PyCharm) aren't, so use the non-spaced version.

[1] https://mypy.readthedocs.io/en/stable/type_inference_and_annotations.html#type-ignore-error-codes

Test Plan

  • CI passes

Checklist

  • These changes should not need testing in Qubes
  • No update to the AppArmor profile is required for these changes
  • No database schema changes are needed

Per the mypy documentation[1], the syntax is:
`# type: ignore[error-code]`, with no space between ignore and [. It
seems like mypy is fine with the space, but other tools (e.g. PyCharm)
aren't, so use the non-spaced version.

[1] https://mypy.readthedocs.io/en/stable/type_inference_and_annotations.html#type-ignore-error-codes
@legoktm legoktm requested a review from a team as a code owner March 15, 2023 22:12
@gonzalo-bulnes gonzalo-bulnes merged commit fcedc2d into main Mar 21, 2023
@gonzalo-bulnes gonzalo-bulnes deleted the mypy-ignore branch March 21, 2023 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants