Rename LazyInitialise to make IDEs recognise it as a property

This commit is contained in:
Kristóf Tóth
2018-06-02 11:48:34 +02:00
parent d5b0bb4d32
commit edc46a8ae6
6 changed files with 10 additions and 10 deletions

View File

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