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

Remove ignore_missing_imports from mypy #2824

Merged
merged 6 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ combine-as-imports = true

[tool.mypy]
strict = true
ignore_missing_imports = true
python_version = "3.9"

[[tool.mypy.overrides]]
Expand Down
2 changes: 1 addition & 1 deletion starlette/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
has_exceptiongroups = True
if sys.version_info < (3, 11): # pragma: no cover
try:
from exceptiongroup import BaseExceptionGroup
from exceptiongroup import BaseExceptionGroup # type: ignore[unused-ignore,import-not-found]
except ImportError:
has_exceptiongroups = False

Expand Down
4 changes: 2 additions & 2 deletions starlette/formparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from starlette.datastructures import FormData, Headers, UploadFile

if typing.TYPE_CHECKING:
import multipart
from multipart.multipart import MultipartCallbacks, QuerystringCallbacks, parse_options_header
import python_multipart as multipart
from python_multipart.multipart import MultipartCallbacks, QuerystringCallbacks, parse_options_header
else:
try:
try:
Expand Down
2 changes: 1 addition & 1 deletion starlette/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from starlette.types import Message, Receive, Scope, Send

if typing.TYPE_CHECKING:
from multipart.multipart import parse_options_header
from python_multipart.multipart import parse_options_header

from starlette.applications import Starlette
from starlette.routing import Router
Expand Down
Loading