mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Minor black apply
This commit is contained in:
parent
baf9a4068b
commit
c8e3c4e9f0
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue