Skip to content

Commit

Permalink
chore: Update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed May 26, 2024
1 parent 0ec1100 commit cdf05b9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Credits: Heavily inspired by django-transmeta's sync_transmeta_db command.
"""

from __future__ import annotations

from typing import Any, Iterator, cast
Expand Down
7 changes: 3 additions & 4 deletions modeltranslation/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
https://github.com/zmathew/django-linguo
"""

from __future__ import annotations

import itertools
Expand Down Expand Up @@ -581,15 +582,13 @@ def __iter__(self) -> Iterator[Any]:
@overload
def multilingual_queryset_factory(
old_cls: type[Any], instantiate: Literal[False]
) -> type[MultilingualQuerySet]:
...
) -> type[MultilingualQuerySet]: ...


@overload
def multilingual_queryset_factory(
old_cls: type[Any], instantiate: Literal[True] = ...
) -> MultilingualQuerySet:
...
) -> MultilingualQuerySet: ...


def multilingual_queryset_factory(
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ packages = [
[tool.poetry.dependencies]
python = ">=3.8,<4"
django = ">=4.2"
ruff = "^0.0.292"
typing-extensions = {version = ">=4.0.1", python = "<3.11"}

[tool.poetry.group.dev.dependencies]
ruff = "*"
pdbpp = "*"
parameterized = "*"
pytest-cov = "*"
Expand All @@ -28,6 +28,7 @@ build = "*"
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
ignore = [
"E501", # line length is handled by formatter
]
Expand Down

0 comments on commit cdf05b9

Please sign in to comment.