Skip to content

Commit

Permalink
Use functools.cached_property in favor of Django's in mypy plugin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe authored Sep 18, 2023
1 parent 395f43d commit 10d8cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy_django_plugin/django/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
from collections import defaultdict
from contextlib import contextmanager
from functools import cached_property
from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, Literal, Optional, Sequence, Set, Tuple, Type, Union

from django.core.exceptions import FieldDoesNotExist, FieldError
Expand All @@ -13,7 +14,6 @@
from django.db.models.fields.reverse_related import ForeignObjectRel
from django.db.models.lookups import Exact
from django.db.models.sql.query import Query
from django.utils.functional import cached_property
from mypy.checker import TypeChecker
from mypy.nodes import TypeInfo
from mypy.plugin import MethodContext
Expand Down

0 comments on commit 10d8cca

Please sign in to comment.