Skip to content

Commit 44fb035

Browse files
ref: Add pydantic to the typing group (#6730)
Add `pydantic` to the typing dependency group and fix the resulting mypy errors.
1 parent 09c3613 commit 44fb035

3 files changed

Lines changed: 80 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ typing = [
6969
"werkzeug",
7070
"starlette>=1.3.1",
7171
"python-multipart>=0.0.32",
72+
"pydantic>=2.13.4",
7273
]
7374
test = [
7475
"dataclasses ; python_full_version < '3.7'",

sentry_sdk/integrations/starlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
try:
17-
from pydantic import BaseModel # type: ignore
17+
from pydantic import BaseModel
1818
from starlite import Request, Starlite, State # type: ignore
1919
from starlite.handlers.base import BaseRouteHandler # type: ignore
2020
from starlite.middleware import DefineMiddleware # type: ignore

uv.lock

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)