Skip to content

Commit

Permalink
Update django to 4.2.6 (#1757)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Oct 5, 2023
1 parent b12a384 commit 6c53189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion django-stubs/utils/text.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import Callable, Iterable, Iterator
from io import BytesIO
from re import Pattern
from typing import TypeVar, overload
from typing import ClassVar, TypeVar, overload

from django.db.models.base import Model
from django.utils.functional import SimpleLazyObject, _StrOrPromise
Expand All @@ -19,6 +19,7 @@ re_camel_case: Pattern[str]
def wrap(text: _StrOrPromiseT, width: int) -> _StrOrPromiseT: ...

class Truncator(SimpleLazyObject):
MAX_LENGTH_HTML: ClassVar[int]
def __init__(self, text: Model | str) -> None: ...
def add_truncation_text(self, text: str, truncate: str | None = ...) -> str: ...
def chars(self, num: int, truncate: str | None = ..., html: bool = ...) -> str: ...
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pytest-shard==0.1.2

# Django deps:
psycopg2-binary
Django==4.2.5
Django==4.2.6
-e ./ext
-e .[compatible-mypy]

Expand Down

0 comments on commit 6c53189

Please sign in to comment.