Skip to content

Commit 4d4389d

Browse files
authored
Update ruff (#2573)
1 parent d835314 commit 4d4389d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
args: [--fix=lf]
1818
- id: check-case-conflict
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.9.10
20+
rev: v0.11.0
2121
hooks:
2222
- id: ruff
2323
args: ["--fix", "--exit-non-zero-on-fix"]

django-stubs/db/models/enums.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class ChoicesType(EnumType):
2626
# disallows 'typing_extensions.Self' on metaclasses, while PYI019 try to enforce
2727
# 'typing_extensions.Self' for '__new__' methods.. We've chosen to ignore the
2828
# linter and trust mypy.
29-
def __new__(
29+
def __new__( # noqa: PYI019
3030
metacls: type[_Self], classname: str, bases: tuple[type, ...], classdict: enum._EnumDict, **kwds: Any
31-
) -> _Self: ... # noqa: PYI019
31+
) -> _Self: ...
3232
def __contains__(self, member: Any) -> bool: ...
3333
@property
3434
def names(self) -> list[str]: ...

0 commit comments

Comments
 (0)