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
|
import typing
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
import evennia
|
||||||
import inflect
|
import inflect
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
import evennia
|
|
||||||
from evennia.commands import cmdset
|
from evennia.commands import cmdset
|
||||||
from evennia.commands.cmdsethandler import CmdSetHandler
|
from evennia.commands.cmdsethandler import CmdSetHandler
|
||||||
from evennia.objects.manager import ObjectManager
|
from evennia.objects.manager import ObjectManager
|
||||||
|
|
|
||||||
|
|
@ -2184,6 +2184,7 @@ _missing = object()
|
||||||
|
|
||||||
TProp = TypeVar("TProp")
|
TProp = TypeVar("TProp")
|
||||||
|
|
||||||
|
|
||||||
class lazy_property(Generic[TProp]):
|
class lazy_property(Generic[TProp]):
|
||||||
"""
|
"""
|
||||||
Delays loading of property until first access. Credit goes to the
|
Delays loading of property until first access. Credit goes to the
|
||||||
|
|
@ -2213,12 +2214,12 @@ class lazy_property(Generic[TProp]):
|
||||||
self.func = func
|
self.func = func
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, obj: None, type=None) -> 'lazy_property': ...
|
def __get__(self, obj: None, type=None) -> "lazy_property": ...
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, obj, type=None) -> TProp: ...
|
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"""
|
"""Triggers initialization"""
|
||||||
if obj is None:
|
if obj is None:
|
||||||
return self
|
return self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue