Docstring for chain
This commit is contained in:
parent
26165647e3
commit
a5dc101a19
@ -11,6 +11,8 @@ from i3pystatus.core.imputil import ClassFinder
|
|||||||
|
|
||||||
|
|
||||||
def chain(fun):
|
def chain(fun):
|
||||||
|
"""Method decorator to implicitly return `self` from the decorated method
|
||||||
|
"""
|
||||||
def chained(self, *args, **kwargs):
|
def chained(self, *args, **kwargs):
|
||||||
fun(self, *args, **kwargs)
|
fun(self, *args, **kwargs)
|
||||||
return self
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user