Minor black apply

This commit is contained in:
Griatch 2025-05-25 09:37:02 +02:00
parent baf9a4068b
commit c8e3c4e9f0
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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