Pylons / pyramid

Pyramid - A Python web framework
https://trypyramid.com/
Other
3.97k stars 887 forks source link

Sphinx doesn't like the reify decorator #3655

Closed Natim closed 3 years ago

Natim commented 3 years ago

Failed to get a method signature for kinto.core.resource.Resource.timestamp: <pyramid.decorator.reify object at 0x7f175ae45640> is not a callable object

If I understand correctly this is because the reify decorator doesn't pass along the function signature.

luhn commented 3 years ago

The problem here is that a reify'd property isn't callable—@reify has the same API as @property. So Sphinx is looking for a callable object (not sure why, I don't know what your docs look like), but gets something that looks like a property.

Natim commented 3 years ago

Yes but it is missing some things that property is doing (doc, annotation, etc). If figured out a fix in #3656.