Skip to content

Commit 43f4426

Browse files
committed
fix: type the TypeAdapter builder argument as Any for pydantic 2.14 stubs
1 parent c0b6327 commit 43f4426

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/httpware/decoders/pydantic.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class entirely when `is_pydantic_installed` is False, so `AsyncClient()` does
2525
T = TypeVar("T")
2626

2727

28-
def _build_adapter(model: object) -> "TypeAdapter[typing.Any] | None":
28+
def _build_adapter(model: typing.Any) -> "TypeAdapter[typing.Any] | None": # noqa: ANN401
2929
"""Return a `TypeAdapter` for `model`, or None when pydantic cannot build a schema for it."""
3030
try:
3131
return TypeAdapter(model)

0 commit comments

Comments
 (0)