Skip to content

Commit 971a2f3

Browse files
authored
Update ruff and silence PYI046 (#1907)
1 parent 9bf4922 commit 971a2f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: check-merge-conflict
1414
- id: end-of-file-fixer
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.1.11
16+
rev: v0.1.13
1717
hooks:
1818
- id: ruff
1919
args: ["--fix", "--exit-non-zero-on-fix"]

django-stubs/utils/datastructures.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _PropertyDescriptor(Generic[_K, _V]):
3737
def __set__(self, instance: Any, value: _K) -> None: ...
3838

3939
@type_check_only
40-
class _IndexableCollection(Protocol[_I], Collection[_I]):
40+
class _IndexableCollection(Protocol[_I], Collection[_I]): # noqa: PYI046
4141
@overload
4242
def __getitem__(self, index: int) -> _I: ...
4343
@overload

django-stubs/utils/functional.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class classproperty(Generic[_Get]):
9696
def getter(self, method: Callable[[Any], _Get]) -> classproperty[_Get]: ...
9797

9898
@type_check_only
99-
class _Getter(Protocol[_Get]):
99+
class _Getter(Protocol[_Get]): # noqa: PYI046
100100
"""Type fake to declare some read-only properties (until `property` builtin is generic)
101101
102102
We can use something like `Union[_Getter[str], str]` in base class to avoid errors

0 commit comments

Comments
 (0)