Commit 353bc8d3 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

weboob.browser.elements: add klass attribute to decorated @method

@method wraps a class into a function, but then we cannot access the
class anymore. For introspection, we expose it in a "klass" attribute.
parent 0b38e2bd
......@@ -88,6 +88,8 @@ def method(klass):
def inner(self, *args, **kwargs):
return klass(self)(*args, **kwargs)
inner.klass = klass
return inner
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