Skip to content

Commit f2efdef

Browse files
committed
chore: Update ruff
1 parent 59aee02 commit f2efdef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+55
-69
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: unasyncd
2525
additional_dependencies: ["ruff"]
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.11.5"
27+
rev: "v0.12.8"
2828
hooks:
2929
- id: ruff
3030
args: ["--fix"]

litestar/_signature/model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: UP006, UP007
21
from __future__ import annotations
32

43
import re
@@ -102,7 +101,7 @@ def _deserializer(target_type: Any, value: Any, default_deserializer: Callable[[
102101
class SignatureModel(Struct):
103102
"""Model that represents a function signature that uses a msgspec specific type or types."""
104103

105-
_data_dto: ClassVar[Optional[type[AbstractDTO]]]
104+
_data_dto: ClassVar[type[AbstractDTO] | None]
106105
_dependency_name_set: ClassVar[set[str]]
107106
_fields: ClassVar[dict[str, FieldDefinition]]
108107
_return_annotation: ClassVar[Any]

litestar/contrib/attrs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING, Any

litestar/contrib/attrs/attrs_schema_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING, Any

litestar/contrib/prometheus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING

litestar/contrib/prometheus/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING

litestar/contrib/prometheus/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING

litestar/contrib/prometheus/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING

litestar/contrib/pydantic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING, Any

litestar/contrib/pydantic/pydantic_di_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: TC004, F401
1+
# ruff: noqa: F401
22
from __future__ import annotations
33

44
from typing import TYPE_CHECKING # pragma: no cover

0 commit comments

Comments
 (0)