typehints
模块源码
项目中使用的额外类型标记。
类型
| 成员 | Type | |
|---|---|---|
| AnnoMark | TypedDict | 标记数据项的属性mark。 | 
| AnnoItem | TypedDict | 标记数据项。 | 
| Annotations | TypedDict | 标记数据的总集。 | 
| AnnoStyle | TypedDict | 标记框的CSS样式。 | 
| DashSelectOptionItem | TypedDict | Dash选单组件的一个选项。 | 
| Size | TypedDict | 针对标记框尺寸的最小需求。 | 
| NSAnnoItem | TypedDict | 用来标记未清理的标记数据项。 | 
| NSAnnotations | TypedDict | 用来标记未清理的全体标记数据。 | 
函数
| 成员 | |
|---|---|
| is_sequence_of | 检查数据data是否是Sequence[T],其中T由验证器确认。 | 
| is_anno_mark | isinstance(data, AnnoMark)的实现。 | 
| is_anno_item | isinstance(data, AnnoItem)的实现。 | 
| is_annotations | isinstance(data, Annotations)的实现。 | 
| is_dash_select_option_item | isinstance(data, DashSelectOptionItem)的实现。 |