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

chore: remove unused type ignores #1137

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

bluenote10
Copy link
Contributor

Description

This PR removes existing # type: ignore suppressions that are unnecessary. Having unused type ignores can be confusing when reading the code, and may actually lead to bugs, if they linger around and suppress a genuine bug in the future. To avoid issues caused by dead type ignores I've enabled the corresponding mypy check.

The PR also makes lint.sh agnostic to the current working directory (currently the linting results can differ depending on from which working directory it gets executed).

Before Merging

  • Review the code changes
    • Unused print / comments / TODOs
    • Missing docstrings for functions that should have them
    • Consistent variable names
    • ...
  • Update changelog.md if necessary
  • Commit messages should contain a semantic label and the ticket number
    • Consider squashing if this is not the case

@SebastianNiehusAA
Copy link
Contributor

Nice little clean-up. Looks good to me. Thanks!

@SebastianNiehusAA SebastianNiehusAA merged commit fd9efa4 into main Nov 14, 2024
4 checks passed
@SebastianNiehusAA SebastianNiehusAA deleted the feature/remove_unused_type_ignores branch November 14, 2024 07:51
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.

2 participants