mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-03 02:33:23 +08:00
descriptors are now also working with classes. this means classmethod/staticmethod are now working
This commit is contained in:
@@ -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