Do not wrap api methods with a lambda
Makes Pycharm happy
This commit is contained in:
parent
cfc6b0d012
commit
ddad426563
@ -43,10 +43,9 @@ def download(url):
|
|||||||
|
|
||||||
def api(*versions):
|
def api(*versions):
|
||||||
def decorator(func):
|
def decorator(func):
|
||||||
method = lambda *args, **kwargs: func(*args, **kwargs)
|
setattr(func, 'versions', versions)
|
||||||
setattr(method, 'versions', versions)
|
setattr(func, 'api', True)
|
||||||
setattr(method, 'api', True)
|
return func
|
||||||
return method
|
|
||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user