We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4320f5b commit 34ccd4bCopy full SHA for 34ccd4b
src/variants/_variants.py
@@ -27,7 +27,7 @@ def myfunc(url):
27
do_something(r.text)
28
"""
29
30
- class VariantFunction:
+ class VariantFunction(object):
31
__doc__ = f.__doc__
32
33
def __init__(self):
@@ -49,10 +49,10 @@ def decorator(vfunc):
49
50
return decorator
51
52
- def __get__(self, instance, owner):
+ def __get__(self, obj, objtype=None):
53
# This is necessary to bind instance methods
54
- if instance is not None:
55
- return VariantMethod(self, instance)
+ if obj is not None:
+ return VariantMethod(self, obj)
56
57
return self
58
0 commit comments