Skip to content

Commit

Permalink
Fool PyLint. It's a "decorator"!
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Oct 30, 2019
1 parent 3f43ab8 commit d60060c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion salt/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,10 @@ def __init__(self, *args, **kwargs):
# we must wrap this class run method to allow for these extra steps
# to be executed pre and post calling the actual run method,
# having subclasses call super would just not work.
self.run = self.__decorate_run(self.run)
#
# We use setattr here to fool pylint not to complain that we're
# overriding run from the subclass here
setattr(self, 'run', self.__decorate_run(self.run))

# __setstate__ and __getstate__ are only used on Windows.
def __setstate__(self, state):
Expand Down

0 comments on commit d60060c

Please sign in to comment.