simonpedrogonzalez / opencluster

GNU General Public License v3.0
1 stars 1 forks source link

Replace checkargs decorator with package #9

Open simonpedrogonzalez opened 3 years ago

mchalela commented 3 years ago

If you decide to use checkargs you need to use functools.wraps, Otherwise your docstring will disappear.

from functools import wraps

def checkargs(function):
    @wraps(function)
    def wrapper(*args, **kwargs):
         ...