|
1 | | -import pydot |
2 | 1 | from _typeshed import Incomplete |
3 | | -from prov.graph import INFERRED_ELEMENT_CLASS as INFERRED_ELEMENT_CLASS |
4 | | -from prov.identifier import QualifiedName as QualifiedName |
5 | | -from prov.model import ( |
6 | | - Identifier as Identifier, |
7 | | - PROV_ACTIVITY as PROV_ACTIVITY, |
8 | | - PROV_AGENT as PROV_AGENT, |
9 | | - PROV_ALTERNATE as PROV_ALTERNATE, |
10 | | - PROV_ASSOCIATION as PROV_ASSOCIATION, |
11 | | - PROV_ATTRIBUTE_QNAMES as PROV_ATTRIBUTE_QNAMES, |
12 | | - PROV_ATTRIBUTION as PROV_ATTRIBUTION, |
13 | | - PROV_BUNDLE as PROV_BUNDLE, |
14 | | - PROV_COMMUNICATION as PROV_COMMUNICATION, |
15 | | - PROV_DELEGATION as PROV_DELEGATION, |
16 | | - PROV_DERIVATION as PROV_DERIVATION, |
17 | | - PROV_END as PROV_END, |
18 | | - PROV_ENTITY as PROV_ENTITY, |
19 | | - PROV_GENERATION as PROV_GENERATION, |
20 | | - PROV_INFLUENCE as PROV_INFLUENCE, |
21 | | - PROV_INVALIDATION as PROV_INVALIDATION, |
22 | | - PROV_MEMBERSHIP as PROV_MEMBERSHIP, |
23 | | - PROV_MENTION as PROV_MENTION, |
24 | | - PROV_SPECIALIZATION as PROV_SPECIALIZATION, |
25 | | - PROV_START as PROV_START, |
26 | | - PROV_USAGE as PROV_USAGE, |
27 | | - ProvActivity as ProvActivity, |
28 | | - ProvAgent as ProvAgent, |
29 | | - ProvBundle as ProvBundle, |
30 | | - ProvElement as ProvElement, |
31 | | - ProvEntity as ProvEntity, |
32 | | - ProvException as ProvException, |
33 | | - ProvRecord as ProvRecord, |
34 | | - sorted_attributes as sorted_attributes, |
35 | | -) |
36 | | -from typing import Any |
| 2 | +from prov.model import PROV_ACTIVITY as PROV_ACTIVITY |
| 3 | +from prov.model import PROV_AGENT as PROV_AGENT |
| 4 | +from prov.model import PROV_ALTERNATE as PROV_ALTERNATE |
| 5 | +from prov.model import PROV_ASSOCIATION as PROV_ASSOCIATION |
| 6 | +from prov.model import PROV_ATTRIBUTE_QNAMES as PROV_ATTRIBUTE_QNAMES |
| 7 | +from prov.model import PROV_ATTRIBUTION as PROV_ATTRIBUTION |
| 8 | +from prov.model import PROV_BUNDLE as PROV_BUNDLE |
| 9 | +from prov.model import PROV_COMMUNICATION as PROV_COMMUNICATION |
| 10 | +from prov.model import PROV_DELEGATION as PROV_DELEGATION |
| 11 | +from prov.model import PROV_DERIVATION as PROV_DERIVATION |
| 12 | +from prov.model import PROV_END as PROV_END |
| 13 | +from prov.model import PROV_ENTITY as PROV_ENTITY |
| 14 | +from prov.model import PROV_GENERATION as PROV_GENERATION |
| 15 | +from prov.model import PROV_INFLUENCE as PROV_INFLUENCE |
| 16 | +from prov.model import PROV_INVALIDATION as PROV_INVALIDATION |
| 17 | +from prov.model import PROV_MEMBERSHIP as PROV_MEMBERSHIP |
| 18 | +from prov.model import PROV_MENTION as PROV_MENTION |
| 19 | +from prov.model import PROV_SPECIALIZATION as PROV_SPECIALIZATION |
| 20 | +from prov.model import PROV_START as PROV_START |
| 21 | +from prov.model import PROV_USAGE as PROV_USAGE |
| 22 | +from prov.model import Identifier as Identifier |
| 23 | +from prov.model import ProvException as ProvException |
| 24 | +from prov.model import sorted_attributes as sorted_attributes |
37 | 25 |
|
38 | | -GENERIC_NODE_STYLE: dict[type[ProvElement | ProvBundle] | None, dict[str, str]] |
39 | 26 | DOT_PROV_STYLE: Incomplete |
40 | 27 | ANNOTATION_STYLE: Incomplete |
41 | 28 | ANNOTATION_LINK_STYLE: Incomplete |
42 | 29 | ANNOTATION_START_ROW: str |
43 | 30 | ANNOTATION_ROW_TEMPLATE: str |
44 | 31 | ANNOTATION_END_ROW: str |
45 | 32 |
|
46 | | -def htlm_link_if_uri(value: Any) -> str: ... |
| 33 | +def htlm_link_if_uri(value): ... |
47 | 34 | def prov_to_dot( |
48 | | - bundle: ProvBundle, |
49 | | - show_nary: bool = True, |
50 | | - use_labels: bool = False, |
51 | | - direction: str = "BT", |
52 | | - show_element_attributes: bool = True, |
53 | | - show_relation_attributes: bool = True, |
54 | | -) -> pydot.Dot: ... |
| 35 | + bundle, |
| 36 | + show_nary: bool = ..., |
| 37 | + use_labels: bool = ..., |
| 38 | + direction: str = ..., |
| 39 | + show_element_attributes: bool = ..., |
| 40 | + show_relation_attributes: bool = ..., |
| 41 | +): ... |
0 commit comments