我有一些代码在python中使用metaclass。但是,当运行狮身人面像车博士它给错误:狮身人面像autodoc给出警告:py:类参考目标未找到:键入警告
WARNING: py:class reference target not found: type
的错误是在一条线上自动的生成存在的文件.rst:
.. automodule:: API.list.blockList
:members: # this is the line in error
:show-inheritance:
而且延伸黑名单API.list。列表中有\__metaclass__
设置为我的元类。
从我可以告诉狮身人面像并不认为内建类型存在。我已经尝试导入内建类型,使狮身人面像意识到它在那里,但没有奏效。
如果我从API.list.list中删除元类的赋值,并从代码中删除元类,那么sphinx就可以正常工作。
你能提供一个触发这个的最小例子吗? – Nikratio 2015-04-28 01:23:49