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

Mypy: Don't ignore missing imports (remove ignore_missing_imports) #611

Merged
merged 2 commits into from
May 12, 2024

Conversation

intgr
Copy link
Contributor

@intgr intgr commented May 10, 2024

Fortunately this was not hiding any genuine bugs in DRF-stubs.

Related issues

mypy.ini Outdated Show resolved Hide resolved
except ImportError:
coreschema: TypeAlias = None # type: ignore[no-redef]
try:
import yaml
except ImportError:
yaml: TypeAlias = None # type: ignore[no-redef]
try:
import inflection
import inflection # type: ignore[import-not-found,unused-ignore]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't do anything with inflection, only re-export it via rest_framework.compat, it seems unnecessary to add it even as an optional dependency.

@intgr intgr merged commit 641b213 into typeddjango:master May 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants