|
1 | 1 | import hugr.model
|
2 | 2 |
|
3 |
| -def term_to_string(term: "hugr.model.Term") -> str: |
4 |
| - """Convert a term into a string in the hugr text syntax.""" |
5 |
| - ... |
6 |
| - |
7 |
| -def string_to_term(string: str) -> "hugr.model.Term": |
8 |
| - """Parse a term from a string in the hugr text syntax.""" |
9 |
| - |
10 |
| -def node_to_string(node: "hugr.model.Node") -> str: |
11 |
| - """Convert a node into a string in the hugr text syntax.""" |
12 |
| - ... |
13 |
| - |
14 |
| -def string_to_node(string: str) -> "hugr.model.Node": |
15 |
| - """Parse a node from a string in the hugr text syntax.""" |
16 |
| - ... |
17 |
| - |
18 |
| -def region_to_string(region: "hugr.model.Region") -> str: |
19 |
| - """Convert a node into a string in the hugr text syntax.""" |
20 |
| - ... |
21 |
| - |
22 |
| -def string_to_region(string: str) -> "hugr.model.Region": |
23 |
| - """Parse a region from a string in the hugr text syntax.""" |
24 |
| - ... |
25 |
| - |
26 |
| -def param_to_string(region: "hugr.model.Param") -> str: |
27 |
| - """Convert a parameter into a string in the hugr text syntax.""" |
28 |
| - ... |
29 |
| - |
30 |
| -def string_to_param(string: str) -> "hugr.model.Param": |
31 |
| - """Parse a parameter from a string in the hugr text syntax.""" |
32 |
| - ... |
33 |
| - |
34 |
| -def symbol_to_string(region: "hugr.model.Symbol") -> str: |
35 |
| - """Convert a symbol into a string in the hugr text syntax.""" |
36 |
| - ... |
37 |
| - |
38 |
| -def string_to_symbol(string: str) -> "hugr.model.Symbol": |
39 |
| - """Parse a symbol from a string in the hugr text syntax.""" |
40 |
| - ... |
41 |
| - |
42 |
| -def module_to_string(module: "hugr.model.Module") -> str: |
43 |
| - """Convert a module into a string in the hugr text syntax.""" |
44 |
| - ... |
45 |
| - |
46 |
| -def string_to_module(string: str) -> "hugr.model.Module": |
47 |
| - """Parse a module from a string in the hugr text syntax.""" |
48 |
| - ... |
49 |
| - |
50 |
| -def module_to_bytes(module: "hugr.model.Module") -> bytes: |
51 |
| - """Convert a module into the hugr binary format.""" |
52 |
| - ... |
53 |
| - |
54 |
| -def bytes_to_module(binary: bytes) -> "hugr.model.Module": |
55 |
| - """Read a module from the hugr binary format.""" |
56 |
| - ... |
| 3 | +def term_to_string(term: hugr.model.Term) -> str: ... |
| 4 | +def string_to_term(string: str) -> hugr.model.Term: ... |
| 5 | +def node_to_string(node: hugr.model.Node) -> str: ... |
| 6 | +def string_to_node(string: str) -> hugr.model.Node: ... |
| 7 | +def region_to_string(region: hugr.model.Region) -> str: ... |
| 8 | +def string_to_region(string: str) -> hugr.model.Region: ... |
| 9 | +def param_to_string(region: hugr.model.Param) -> str: ... |
| 10 | +def string_to_param(string: str) -> hugr.model.Param: ... |
| 11 | +def symbol_to_string(region: hugr.model.Symbol) -> str: ... |
| 12 | +def string_to_symbol(string: str) -> hugr.model.Symbol: ... |
| 13 | +def module_to_string(module: hugr.model.Module) -> str: ... |
| 14 | +def string_to_module(string: str) -> hugr.model.Module: ... |
| 15 | +def module_to_bytes(module: hugr.model.Module) -> bytes: ... |
| 16 | +def bytes_to_module(binary: bytes) -> hugr.model.Module: ... |
0 commit comments