Skip to content

Commit

Permalink
mypy: move setter after getter to avoid mypy#1465
Browse files Browse the repository at this point in the history
  • Loading branch information
nicki-krizek committed Oct 25, 2018
1 parent 177c26b commit b6e3ba2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pydnstest/augwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ def value(self):
log.debug('tree get: %s = %s', self._path, 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
def span(self):
if self._span is None:
Expand All @@ -164,14 +172,6 @@ def span(self):
def char(self):
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):
"""
number of items matching this path
Expand Down

0 comments on commit b6e3ba2

Please sign in to comment.