Skip to content

Commit

Permalink
chore: use decorator syntax for cached_property
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed Jun 26, 2023
1 parent 7df6e5e commit 254edbf
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/connection.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class BaseConnectionHandler(Generic[_T]):
settings_name: str | None
exception_class: type[Exception]
thread_critical: bool
settings: cached_property[dict[str, Any]]
@cached_property
def settings(self) -> dict[str, Any]: ...
def __init__(self, settings: Any | None = ...) -> None: ...
def configure_settings(self, settings: dict[str, Any] | None) -> dict[str, Any]: ...
def create_connection(self, alias: str) -> _T: ...
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/utils/deprecation.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections.abc import Awaitable, Callable
from typing import Any, Protocol, type_check_only
from typing import Any, Protocol

from django.http.request import HttpRequest
from django.http.response import HttpResponseBase
Expand Down

0 comments on commit 254edbf

Please sign in to comment.