Docstring for chain

This commit is contained in:
enkore 2013-10-18 19:23:50 +02:00
parent 26165647e3
commit a5dc101a19

View File

@ -11,6 +11,8 @@ from i3pystatus.core.imputil import ClassFinder
def chain(fun):
"""Method decorator to implicitly return `self` from the decorated method
"""
def chained(self, *args, **kwargs):
fun(self, *args, **kwargs)
return self