@@ -116,7 +116,7 @@ def validate(
116116 * ,
117117 netlist : Netlist ,
118118 statements : StatementDictionary ,
119- mapping : typing .Dict [str , Computation ],
119+ mapping : typing .Optional [ typing . Dict [str , typing . Optional [ Computation ]]] = OMIT ,
120120 request_options : typing .Optional [RequestOptions ] = None ,
121121 ) -> ValidateNetlistResponse :
122122 """
@@ -128,7 +128,7 @@ def validate(
128128
129129 statements : StatementDictionary
130130
131- mapping : typing.Dict[str, Computation]
131+ mapping : typing.Optional[typing. Dict[str, typing.Optional[ Computation]] ]
132132
133133 request_options : typing.Optional[RequestOptions]
134134 Request-specific configuration.
@@ -140,20 +140,14 @@ def validate(
140140
141141 Examples
142142 --------
143- from axiomatic import Axiomatic, Computation, Netlist, StatementDictionary
143+ from axiomatic import Axiomatic, Netlist, StatementDictionary
144144
145145 client = Axiomatic(
146146 api_key="YOUR_API_KEY",
147147 )
148148 client.pic.circuit.validate(
149149 netlist=Netlist(),
150150 statements=StatementDictionary(),
151- mapping={
152- "key": Computation(
153- name="name",
154- arguments={"key": True},
155- )
156- },
157151 )
158152 """
159153 _response = self ._client_wrapper .httpx_client .request (
@@ -167,7 +161,7 @@ def validate(
167161 object_ = statements , annotation = StatementDictionary , direction = "write"
168162 ),
169163 "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"
171165 ),
172166 },
173167 headers = {
@@ -593,8 +587,8 @@ def optimize(
593587 * ,
594588 netlist : Netlist ,
595589 statements : StatementDictionary ,
596- mapping : typing .Dict [str , Computation ],
597590 parameters : typing .Sequence [Parameter ],
591+ mapping : typing .Optional [typing .Dict [str , typing .Optional [Computation ]]] = OMIT ,
598592 config : typing .Optional [OptimizeConfig ] = OMIT ,
599593 request_options : typing .Optional [RequestOptions ] = None ,
600594 ) -> OptimizeNetlistResponse :
@@ -607,10 +601,10 @@ def optimize(
607601
608602 statements : StatementDictionary
609603
610- mapping : typing.Dict[str, Computation]
611-
612604 parameters : typing.Sequence[Parameter]
613605
606+ mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
607+
614608 config : typing.Optional[OptimizeConfig]
615609
616610 request_options : typing.Optional[RequestOptions]
@@ -623,26 +617,14 @@ def optimize(
623617
624618 Examples
625619 --------
626- from axiomatic import (
627- Axiomatic,
628- Computation,
629- Netlist,
630- Parameter,
631- StatementDictionary,
632- )
620+ from axiomatic import Axiomatic, Netlist, Parameter, StatementDictionary
633621
634622 client = Axiomatic(
635623 api_key="YOUR_API_KEY",
636624 )
637625 client.pic.circuit.optimize(
638626 netlist=Netlist(),
639627 statements=StatementDictionary(),
640- mapping={
641- "key": Computation(
642- name="name",
643- arguments={"key": True},
644- )
645- },
646628 parameters=[
647629 Parameter(
648630 path="path",
@@ -660,12 +642,12 @@ def optimize(
660642 "statements" : convert_and_respect_annotation_metadata (
661643 object_ = statements , annotation = StatementDictionary , direction = "write"
662644 ),
663- "mapping" : convert_and_respect_annotation_metadata (
664- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
665- ),
666645 "parameters" : convert_and_respect_annotation_metadata (
667646 object_ = parameters , annotation = typing .Sequence [Parameter ], direction = "write"
668647 ),
648+ "mapping" : convert_and_respect_annotation_metadata (
649+ object_ = mapping , annotation = typing .Dict [str , typing .Optional [Computation ]], direction = "write"
650+ ),
669651 "config" : convert_and_respect_annotation_metadata (
670652 object_ = config , annotation = OptimizeConfig , direction = "write"
671653 ),
@@ -1086,7 +1068,7 @@ async def validate(
10861068 * ,
10871069 netlist : Netlist ,
10881070 statements : StatementDictionary ,
1089- mapping : typing .Dict [str , Computation ],
1071+ mapping : typing .Optional [ typing . Dict [str , typing . Optional [ Computation ]]] = OMIT ,
10901072 request_options : typing .Optional [RequestOptions ] = None ,
10911073 ) -> ValidateNetlistResponse :
10921074 """
@@ -1098,7 +1080,7 @@ async def validate(
10981080
10991081 statements : StatementDictionary
11001082
1101- mapping : typing.Dict[str, Computation]
1083+ mapping : typing.Optional[typing. Dict[str, typing.Optional[ Computation]] ]
11021084
11031085 request_options : typing.Optional[RequestOptions]
11041086 Request-specific configuration.
@@ -1112,7 +1094,7 @@ async def validate(
11121094 --------
11131095 import asyncio
11141096
1115- from axiomatic import AsyncAxiomatic, Computation, Netlist, StatementDictionary
1097+ from axiomatic import AsyncAxiomatic, Netlist, StatementDictionary
11161098
11171099 client = AsyncAxiomatic(
11181100 api_key="YOUR_API_KEY",
@@ -1123,12 +1105,6 @@ async def main() -> None:
11231105 await client.pic.circuit.validate(
11241106 netlist=Netlist(),
11251107 statements=StatementDictionary(),
1126- mapping={
1127- "key": Computation(
1128- name="name",
1129- arguments={"key": True},
1130- )
1131- },
11321108 )
11331109
11341110
@@ -1145,7 +1121,7 @@ async def main() -> None:
11451121 object_ = statements , annotation = StatementDictionary , direction = "write"
11461122 ),
11471123 "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"
11491125 ),
11501126 },
11511127 headers = {
@@ -1611,8 +1587,8 @@ async def optimize(
16111587 * ,
16121588 netlist : Netlist ,
16131589 statements : StatementDictionary ,
1614- mapping : typing .Dict [str , Computation ],
16151590 parameters : typing .Sequence [Parameter ],
1591+ mapping : typing .Optional [typing .Dict [str , typing .Optional [Computation ]]] = OMIT ,
16161592 config : typing .Optional [OptimizeConfig ] = OMIT ,
16171593 request_options : typing .Optional [RequestOptions ] = None ,
16181594 ) -> OptimizeNetlistResponse :
@@ -1625,10 +1601,10 @@ async def optimize(
16251601
16261602 statements : StatementDictionary
16271603
1628- mapping : typing.Dict[str, Computation]
1629-
16301604 parameters : typing.Sequence[Parameter]
16311605
1606+ mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
1607+
16321608 config : typing.Optional[OptimizeConfig]
16331609
16341610 request_options : typing.Optional[RequestOptions]
@@ -1643,13 +1619,7 @@ async def optimize(
16431619 --------
16441620 import asyncio
16451621
1646- from axiomatic import (
1647- AsyncAxiomatic,
1648- Computation,
1649- Netlist,
1650- Parameter,
1651- StatementDictionary,
1652- )
1622+ from axiomatic import AsyncAxiomatic, Netlist, Parameter, StatementDictionary
16531623
16541624 client = AsyncAxiomatic(
16551625 api_key="YOUR_API_KEY",
@@ -1660,12 +1630,6 @@ async def main() -> None:
16601630 await client.pic.circuit.optimize(
16611631 netlist=Netlist(),
16621632 statements=StatementDictionary(),
1663- mapping={
1664- "key": Computation(
1665- name="name",
1666- arguments={"key": True},
1667- )
1668- },
16691633 parameters=[
16701634 Parameter(
16711635 path="path",
@@ -1686,12 +1650,12 @@ async def main() -> None:
16861650 "statements" : convert_and_respect_annotation_metadata (
16871651 object_ = statements , annotation = StatementDictionary , direction = "write"
16881652 ),
1689- "mapping" : convert_and_respect_annotation_metadata (
1690- object_ = mapping , annotation = typing .Dict [str , Computation ], direction = "write"
1691- ),
16921653 "parameters" : convert_and_respect_annotation_metadata (
16931654 object_ = parameters , annotation = typing .Sequence [Parameter ], direction = "write"
16941655 ),
1656+ "mapping" : convert_and_respect_annotation_metadata (
1657+ object_ = mapping , annotation = typing .Dict [str , typing .Optional [Computation ]], direction = "write"
1658+ ),
16951659 "config" : convert_and_respect_annotation_metadata (
16961660 object_ = config , annotation = OptimizeConfig , direction = "write"
16971661 ),
0 commit comments