Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ typing = [
"botocore-stubs",
"werkzeug",
"starlette>=1.3.1",
"python-multipart>=0.0.32",
"pydantic>=2.13.4",
]
test = [
"dataclasses ; python_full_version < '3.7'",
Expand Down
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
# Optional dependency of Starlette to parse form data.
try:
# python-multipart 0.0.13 and later
import python_multipart as multipart # type: ignore
import python_multipart as multipart
except ImportError:
# python-multipart 0.0.12 and earlier
import multipart # type: ignore
except ImportError:
multipart = None
multipart = None # type: ignore[assignment]


# Vendored: https://github.com/Kludex/starlette/blob/0a29b5ccdcbd1285c75c4fdb5d62ae1d244a21b0/starlette/_utils.py#L11-L17
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/starlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)

try:
from pydantic import BaseModel # type: ignore
from pydantic import BaseModel
from starlite import Request, Starlite, State # type: ignore
from starlite.handlers.base import BaseRouteHandler # type: ignore
from starlite.middleware import DefineMiddleware # type: ignore
Expand Down
88 changes: 88 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading