diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 7643fec2b2..1498163a71 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -10,11 +10,10 @@ import time import typing from collections import defaultdict +import evennia import inflect from django.conf import settings from django.utils.translation import gettext as _ - -import evennia from evennia.commands import cmdset from evennia.commands.cmdsethandler import CmdSetHandler from evennia.objects.manager import ObjectManager diff --git a/evennia/utils/utils.py b/evennia/utils/utils.py index bcea65b805..b1561aa5a2 100644 --- a/evennia/utils/utils.py +++ b/evennia/utils/utils.py @@ -2184,6 +2184,7 @@ _missing = object() TProp = TypeVar("TProp") + class lazy_property(Generic[TProp]): """ Delays loading of property until first access. Credit goes to the @@ -2213,12 +2214,12 @@ class lazy_property(Generic[TProp]): self.func = func @overload - def __get__(self, obj: None, type=None) -> 'lazy_property': ... + def __get__(self, obj: None, type=None) -> "lazy_property": ... @overload def __get__(self, obj, type=None) -> TProp: ... - def __get__(self, obj, type=None) -> TProp | 'lazy_property': + def __get__(self, obj, type=None) -> TProp | "lazy_property": """Triggers initialization""" if obj is None: return self