@@ -116,7 +116,7 @@ def validate(
116
116
* ,
117
117
netlist : Netlist ,
118
118
statements : StatementDictionary ,
119
- mapping : typing .Dict [str , Computation ],
119
+ mapping : typing .Optional [ typing . Dict [str , typing . Optional [ Computation ]]] = OMIT ,
120
120
request_options : typing .Optional [RequestOptions ] = None ,
121
121
) -> ValidateNetlistResponse :
122
122
"""
@@ -128,7 +128,7 @@ def validate(
128
128
129
129
statements : StatementDictionary
130
130
131
- mapping : typing.Dict[str, Computation]
131
+ mapping : typing.Optional[typing. Dict[str, typing.Optional[ Computation]] ]
132
132
133
133
request_options : typing.Optional[RequestOptions]
134
134
Request-specific configuration.
@@ -140,20 +140,14 @@ def validate(
140
140
141
141
Examples
142
142
--------
143
- from axiomatic import Axiomatic, Computation, Netlist, StatementDictionary
143
+ from axiomatic import Axiomatic, Netlist, StatementDictionary
144
144
145
145
client = Axiomatic(
146
146
api_key="YOUR_API_KEY",
147
147
)
148
148
client.pic.circuit.validate(
149
149
netlist=Netlist(),
150
150
statements=StatementDictionary(),
151
- mapping={
152
- "key": Computation(
153
- name="name",
154
- arguments={"key": True},
155
- )
156
- },
157
151
)
158
152
"""
159
153
_response = self ._client_wrapper .httpx_client .request (
@@ -167,7 +161,7 @@ def validate(
167
161
object_ = statements , annotation = StatementDictionary , direction = "write"
168
162
),
169
163
"mapping" : convert_and_respect_annotation_metadata (
170
- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
164
+ object_ = mapping , annotation = typing .Dict [str , typing . Optional [ Computation ] ], direction = "write"
171
165
),
172
166
},
173
167
headers = {
@@ -593,8 +587,8 @@ def optimize(
593
587
* ,
594
588
netlist : Netlist ,
595
589
statements : StatementDictionary ,
596
- mapping : typing .Dict [str , Computation ],
597
590
parameters : typing .Sequence [Parameter ],
591
+ mapping : typing .Optional [typing .Dict [str , typing .Optional [Computation ]]] = OMIT ,
598
592
config : typing .Optional [OptimizeConfig ] = OMIT ,
599
593
request_options : typing .Optional [RequestOptions ] = None ,
600
594
) -> OptimizeNetlistResponse :
@@ -607,10 +601,10 @@ def optimize(
607
601
608
602
statements : StatementDictionary
609
603
610
- mapping : typing.Dict[str, Computation]
611
-
612
604
parameters : typing.Sequence[Parameter]
613
605
606
+ mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
607
+
614
608
config : typing.Optional[OptimizeConfig]
615
609
616
610
request_options : typing.Optional[RequestOptions]
@@ -623,26 +617,14 @@ def optimize(
623
617
624
618
Examples
625
619
--------
626
- from axiomatic import (
627
- Axiomatic,
628
- Computation,
629
- Netlist,
630
- Parameter,
631
- StatementDictionary,
632
- )
620
+ from axiomatic import Axiomatic, Netlist, Parameter, StatementDictionary
633
621
634
622
client = Axiomatic(
635
623
api_key="YOUR_API_KEY",
636
624
)
637
625
client.pic.circuit.optimize(
638
626
netlist=Netlist(),
639
627
statements=StatementDictionary(),
640
- mapping={
641
- "key": Computation(
642
- name="name",
643
- arguments={"key": True},
644
- )
645
- },
646
628
parameters=[
647
629
Parameter(
648
630
path="path",
@@ -660,12 +642,12 @@ def optimize(
660
642
"statements" : convert_and_respect_annotation_metadata (
661
643
object_ = statements , annotation = StatementDictionary , direction = "write"
662
644
),
663
- "mapping" : convert_and_respect_annotation_metadata (
664
- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
665
- ),
666
645
"parameters" : convert_and_respect_annotation_metadata (
667
646
object_ = parameters , annotation = typing .Sequence [Parameter ], direction = "write"
668
647
),
648
+ "mapping" : convert_and_respect_annotation_metadata (
649
+ object_ = mapping , annotation = typing .Dict [str , typing .Optional [Computation ]], direction = "write"
650
+ ),
669
651
"config" : convert_and_respect_annotation_metadata (
670
652
object_ = config , annotation = OptimizeConfig , direction = "write"
671
653
),
@@ -1086,7 +1068,7 @@ async def validate(
1086
1068
* ,
1087
1069
netlist : Netlist ,
1088
1070
statements : StatementDictionary ,
1089
- mapping : typing .Dict [str , Computation ],
1071
+ mapping : typing .Optional [ typing . Dict [str , typing . Optional [ Computation ]]] = OMIT ,
1090
1072
request_options : typing .Optional [RequestOptions ] = None ,
1091
1073
) -> ValidateNetlistResponse :
1092
1074
"""
@@ -1098,7 +1080,7 @@ async def validate(
1098
1080
1099
1081
statements : StatementDictionary
1100
1082
1101
- mapping : typing.Dict[str, Computation]
1083
+ mapping : typing.Optional[typing. Dict[str, typing.Optional[ Computation]] ]
1102
1084
1103
1085
request_options : typing.Optional[RequestOptions]
1104
1086
Request-specific configuration.
@@ -1112,7 +1094,7 @@ async def validate(
1112
1094
--------
1113
1095
import asyncio
1114
1096
1115
- from axiomatic import AsyncAxiomatic, Computation, Netlist, StatementDictionary
1097
+ from axiomatic import AsyncAxiomatic, Netlist, StatementDictionary
1116
1098
1117
1099
client = AsyncAxiomatic(
1118
1100
api_key="YOUR_API_KEY",
@@ -1123,12 +1105,6 @@ async def main() -> None:
1123
1105
await client.pic.circuit.validate(
1124
1106
netlist=Netlist(),
1125
1107
statements=StatementDictionary(),
1126
- mapping={
1127
- "key": Computation(
1128
- name="name",
1129
- arguments={"key": True},
1130
- )
1131
- },
1132
1108
)
1133
1109
1134
1110
@@ -1145,7 +1121,7 @@ async def main() -> None:
1145
1121
object_ = statements , annotation = StatementDictionary , direction = "write"
1146
1122
),
1147
1123
"mapping" : convert_and_respect_annotation_metadata (
1148
- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
1124
+ object_ = mapping , annotation = typing .Dict [str , typing . Optional [ Computation ] ], direction = "write"
1149
1125
),
1150
1126
},
1151
1127
headers = {
@@ -1611,8 +1587,8 @@ async def optimize(
1611
1587
* ,
1612
1588
netlist : Netlist ,
1613
1589
statements : StatementDictionary ,
1614
- mapping : typing .Dict [str , Computation ],
1615
1590
parameters : typing .Sequence [Parameter ],
1591
+ mapping : typing .Optional [typing .Dict [str , typing .Optional [Computation ]]] = OMIT ,
1616
1592
config : typing .Optional [OptimizeConfig ] = OMIT ,
1617
1593
request_options : typing .Optional [RequestOptions ] = None ,
1618
1594
) -> OptimizeNetlistResponse :
@@ -1625,10 +1601,10 @@ async def optimize(
1625
1601
1626
1602
statements : StatementDictionary
1627
1603
1628
- mapping : typing.Dict[str, Computation]
1629
-
1630
1604
parameters : typing.Sequence[Parameter]
1631
1605
1606
+ mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
1607
+
1632
1608
config : typing.Optional[OptimizeConfig]
1633
1609
1634
1610
request_options : typing.Optional[RequestOptions]
@@ -1643,13 +1619,7 @@ async def optimize(
1643
1619
--------
1644
1620
import asyncio
1645
1621
1646
- from axiomatic import (
1647
- AsyncAxiomatic,
1648
- Computation,
1649
- Netlist,
1650
- Parameter,
1651
- StatementDictionary,
1652
- )
1622
+ from axiomatic import AsyncAxiomatic, Netlist, Parameter, StatementDictionary
1653
1623
1654
1624
client = AsyncAxiomatic(
1655
1625
api_key="YOUR_API_KEY",
@@ -1660,12 +1630,6 @@ async def main() -> None:
1660
1630
await client.pic.circuit.optimize(
1661
1631
netlist=Netlist(),
1662
1632
statements=StatementDictionary(),
1663
- mapping={
1664
- "key": Computation(
1665
- name="name",
1666
- arguments={"key": True},
1667
- )
1668
- },
1669
1633
parameters=[
1670
1634
Parameter(
1671
1635
path="path",
@@ -1686,12 +1650,12 @@ async def main() -> None:
1686
1650
"statements" : convert_and_respect_annotation_metadata (
1687
1651
object_ = statements , annotation = StatementDictionary , direction = "write"
1688
1652
),
1689
- "mapping" : convert_and_respect_annotation_metadata (
1690
- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
1691
- ),
1692
1653
"parameters" : convert_and_respect_annotation_metadata (
1693
1654
object_ = parameters , annotation = typing .Sequence [Parameter ], direction = "write"
1694
1655
),
1656
+ "mapping" : convert_and_respect_annotation_metadata (
1657
+ object_ = mapping , annotation = typing .Dict [str , typing .Optional [Computation ]], direction = "write"
1658
+ ),
1695
1659
"config" : convert_and_respect_annotation_metadata (
1696
1660
object_ = config , annotation = OptimizeConfig , direction = "write"
1697
1661
),
0 commit comments