Commit b6e3ba2c authored by Tomas Krizek's avatar Tomas Krizek

mypy: move setter after getter to avoid mypy#1465

https://github.com/python/mypy/issues/1465
parent 177c26be
...@@ -154,6 +154,14 @@ class AugeasNode(collections.MutableMapping): ...@@ -154,6 +154,14 @@ class AugeasNode(collections.MutableMapping):
log.debug('tree get: %s = %s', self._path, value) log.debug('tree get: %s = %s', self._path, value)
return value return value
@value.setter
def value(self, value):
"""
set value of this node in Augeas tree
"""
log.debug('tree set: %s = %s', self._path, value)
self._aug.set(self._path, value)
@property @property
def span(self): def span(self):
if self._span is None: if self._span is None:
...@@ -164,14 +172,6 @@ class AugeasNode(collections.MutableMapping): ...@@ -164,14 +172,6 @@ class AugeasNode(collections.MutableMapping):
def char(self): def char(self):
return self._aug.span(self._path)[5] return self._aug.span(self._path)[5]
@value.setter
def value(self, value):
"""
set value of this node in Augeas tree
"""
log.debug('tree set: %s = %s', self._path, value)
self._aug.set(self._path, value)
def __len__(self): def __len__(self):
""" """
number of items matching this path number of items matching this path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment