CERT-Polska / mwdblib

Client library for the mwdb service by CERT Polska.
https://mwdblib.readthedocs.io/en/latest/
MIT License
40 stars 13 forks source link

Docs: Methods decorated with APIClient.requires are missing in documentation #77

Closed psrok1 closed 2 years ago

psrok1 commented 2 years ago

It seems functools.wraps is missing

In [16]: file.remove_attribute
Out[16]: functools.partial(<bound method APIClient.requires.<locals>.VersionDependentMethod.__call__ of <mwdblib.api.api.APIClient.requires.<locals>.VersionDependentMethod object at 0x7f4c1dc3e4a0>>, <mwdblib.file.MWDBFile object at 0x7f4c1ecaec20>)

In [17]: file.remove_attribute.__doc__
Out[17]: 'partial(func, *args, **keywords) - new function with partial application\n    of the given arguments and keywords.\n'