parent
cf4c02b9fa
commit
ef047707d9
|
@ -13,7 +13,6 @@ from collections.abc import (
|
||||||
Mapping,
|
Mapping,
|
||||||
ValuesView,
|
ValuesView,
|
||||||
)
|
)
|
||||||
import contextlib
|
|
||||||
from contextvars import ContextVar
|
from contextvars import ContextVar
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
from enum import Enum, StrEnum
|
from enum import Enum, StrEnum
|
||||||
|
@ -463,8 +462,7 @@ class ConfigEntry:
|
||||||
|
|
||||||
def clear_cache(self) -> None:
|
def clear_cache(self) -> None:
|
||||||
"""Clear cached properties."""
|
"""Clear cached properties."""
|
||||||
with contextlib.suppress(AttributeError):
|
self.__dict__.pop("as_json_fragment", None)
|
||||||
delattr(self, "as_json_fragment")
|
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def as_json_fragment(self) -> json_fragment:
|
def as_json_fragment(self) -> json_fragment:
|
||||||
|
|
Loading…
Reference in New Issue