You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So using deprecatedFrom or deferredFrom, etc, suddenly breaks your Sphinx documentation.
Given foo.py:
"""This is foo.py"""fromzope.deferredimportimportdeprecatedFromdeprecatedFrom("These live in bar",
"bar",
"fizzbin")
You can't get its docstring:
>>> import foo
>>> foo.__doc__
None
This doesn't seem to be a problem in the ProxyBase that ModuleProxy extends:
In [1]: classO(object):
...: """Hi"""
...:
In [2]: O.__doc__
Out[2]: 'Hi'
In [3]: O().__doc__
Out[3]: 'Hi'
In [4]: from zope.proxy import ProxyBase
In [5]: proxy = ProxyBase(O)
In [6]: proxy.__doc__
Out[6]: 'Hi'
In [7]: proxy = ProxyBase(O())
In [8]: proxy.__doc__
Out[8]: 'Hi'
So using
deprecatedFrom
ordeferredFrom
, etc, suddenly breaks your Sphinx documentation.Given foo.py:
You can't get its docstring:
This doesn't seem to be a problem in the
ProxyBase
thatModuleProxy
extends:(Very vaguely related: zopefoundation/zope.hookable#6)
The text was updated successfully, but these errors were encountered: