我在代码中定义了一个TypedDict,如下所示:
class VectorDict(TypedDict): x: float y: float z: float
当我生成文档时,得到以下结果:
如何隐藏->之后的所有内容和/或对其进行修改?
->
解决方案是添加文档字符串:
class VectorDict(TypedDict): """ Description here """ x: float y: float z: float
由此我获得: