descriptors are now also working with classes. this means classmethod/staticmethod are now working
This commit is contained in:
1 parent
b432090f58
commit
4cd1efc5ba
3 files changed
+22
-15
No files matched your search
+1
-1
@@ -47,5 +47,5 @@ class classmethod():
|
||||
|
||||
def __get__(self, obj, cls):
|
||||
def _method(*args, **kwargs):
|
||||
self._func(cls, *args, **kwargs)
|
||||
return self._func(cls, *args, **kwargs)
|
||||
return _method
|
||||
Reference in new issue
Block a user