You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Sphinx对继承IntEnum的类抛出警告,该如何解决?

Sphinx 警告排查求助

出现的警告信息

docstring of liesel.goose.EpochType.from_bytes:9: WARNING: Inline interpreted text or phrase reference start-string without end-string.
docstring of liesel.goose.EpochType.to_bytes:8: WARNING: Inline interpreted text or phrase reference start-string without end-string.

使用的工具版本

  • Sphinx 版本:7.2.6

已做的调查

  • EpochType 类继承自 enum.IntEnum,而 IntEnum 本身继承自 int
  • from_bytes 和 to_bytes 这两个方法实际是从 int 类继承而来的

当前疑问

完全搞不懂Sphinx为什么会抛出这个警告,也不知道该怎么解决它。


内容的提问来源于stack exchange,提问作者jobrachem

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 22:43:12