55from typing import TypedDict , Optional
66from enum import IntEnum
77
8- from polywrap_core import InvokerClient , Uri , UriPackageOrWrapper
8+ from polywrap_core import InvokerClient , Uri
99from polywrap_msgpack import GenericMap
1010
1111
@@ -194,43 +194,37 @@ class TestImportModule:
194194 def __init__ (self , uri : Uri ):
195195 self .uri = uri
196196
197- async def imported_method (
197+ def imported_method (
198198 self ,
199199 args : TestImportModuleArgsImportedMethod ,
200- client : InvokerClient [ UriPackageOrWrapper ]
200+ client : InvokerClient
201201 ) -> Optional ["TestImportObject" ]:
202202 return client .invoke (
203- InvokeOptions (
204- uri = self .uri ,
205- method = "importedMethod" ,
206- args = args ,
207- )
203+ uri = self .uri ,
204+ method = "importedMethod" ,
205+ args = args ,
208206 )
209207
210- async def another_method (
208+ def another_method (
211209 self ,
212210 args : TestImportModuleArgsAnotherMethod ,
213- client : InvokerClient [ UriPackageOrWrapper ]
211+ client : InvokerClient
214212 ) -> int :
215213 return client .invoke (
216- InvokeOptions (
217- uri = self .uri ,
218- method = "anotherMethod" ,
219- args = args ,
220- )
214+ uri = self .uri ,
215+ method = "anotherMethod" ,
216+ args = args ,
221217 )
222218
223- async def returns_array_of_enums (
219+ def returns_array_of_enums (
224220 self ,
225221 args : TestImportModuleArgsReturnsArrayOfEnums ,
226- client : InvokerClient [ UriPackageOrWrapper ]
222+ client : InvokerClient
227223 ) -> list [Optional ["TestImportEnumReturn" ]]:
228224 return client .invoke (
229- InvokeOptions (
230- uri = self .uri ,
231- method = "returnsArrayOfEnums" ,
232- args = args ,
233- )
225+ uri = self .uri ,
226+ method = "returnsArrayOfEnums" ,
227+ args = args ,
234228 )
235229
236230### Imported Modules END ###
@@ -242,7 +236,7 @@ class TestImport:
242236 URI : Uri = Uri .from_str ("testimport.uri.eth" )
243237
244238 def get_implementations (
245- client : InvokerClient [ UriPackageOrWrapper ]
239+ client : InvokerClient
246240 ) -> list [str ]:
247241 impls = client .getImplementations (self .uri )
248242 return [impl .uri for impl in impls ]
0 commit comments