Skip to content

Commit

Permalink
Remove ignore_missing_imports from mypy (#2824)
Browse files Browse the repository at this point in the history
* Remove `ignore_missing_imports` from mypy

* remove comment

* add comment again

* add comment again

* add comment again

* try
  • Loading branch information
Kludex authored Dec 28, 2024
1 parent e7605e1 commit 0dcbe6a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
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

0 comments on commit 0dcbe6a

Please sign in to comment.