DocClassAbstractAttrs
类数据类源码
DocClassAbstractAttrs(
methods: list[DocFunction] = [],
properties: list[DocProp] = [],
operators: list[DocOpTemplate] = []
)
类的额外抽象成员属性 (attribute)。如果对应的类并非抽象基类,该集合将会回退为None。
字段
| 字段 | 类型 | 必选 | |
|---|---|---|---|
methods | list[DocFunction] | 该类的抽象方法列表。 | |
properties | list[DocProp] | 该类的抽象属性列表。 | |
operators | list[DocOpTemplate] | 该类的抽象运算符列表。 |
方法
as_md_text
v_1: str = self.as_md_text(renderer: ProtocolComponent)
渲染为 Markdown 文字。
输入
| 参数 | 类型 | 必选 | |
|---|---|---|---|
renderer | ProtocolComponent | 用来渲染组件的渲染器。 |
输出
| 参数 | 类型 | |
|---|---|---|
v_1 | str | 从该节文字渲染的 Markdown 文本。 |
属性
is_not_implemented
is_not_implemented: bool = self.is_not_implemented
布尔标记。如果为True,则对应的抽象类型仍然存在没有提供实现的方法(成员)。