[go: up one dir, main page]

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

CI: Add module dependencies to mypy hook #99637

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

Conversation

Repiteo
Copy link
Contributor
@Repiteo Repiteo commented Nov 24, 2024

Turns out the detect.py files don't actually need TYPE_CHECKING boilerplate. They were initially added for a mypy validation script, but that's since been replaced by pre-commit hooks; those hooks support additional dependencies, meaning more type info for mypy checks. This PR takes advantage of that by passing modules used anywhere in the repo (SCons & pytest), allowing us to remove some excess boilerplate

@Repiteo Repiteo added this to the 4.x milestone Nov 24, 2024
@Repiteo Repiteo requested a review from a team as a code owner November 24, 2024 17:36
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