mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 14:25:12 +00:00
Rename LazyInitialise to make IDEs recognise it as a property
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
from collections import namedtuple
|
||||
from os import environ
|
||||
|
||||
from tfw.decorators import LazyInitialise
|
||||
from tfw.decorators import lazy_property
|
||||
|
||||
|
||||
class LazyEnvironment:
|
||||
@ -12,7 +12,7 @@ class LazyEnvironment:
|
||||
self._prefix = prefix
|
||||
self._tuple_name = tuple_name
|
||||
|
||||
@LazyInitialise
|
||||
@lazy_property
|
||||
def environment(self):
|
||||
return self.prefixed_envvars_to_namedtuple()
|
||||
|
||||
|
Reference in New Issue
Block a user