@@ -5,7 +5,7 @@ from __future__ import annotations
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
@@ -100,16 +100,14 @@ class {{#detectKeyword}}{{#toUpper}}{{type}}{{/toUpper}}{{/detectKeyword}}(IntEn
100100class { {#detectKeyword} }{ {#toUpper} }{ {type} }{ {/toUpper} }{ {/detectKeyword} }:
101101 { {#methods} }
102102 @staticmethod
103- async def { {#detectKeyword} }{ {#toLower} }{ {name} }{ {/toLower} }{ {/detectKeyword} }(
103+ def { {#detectKeyword} }{ {#toLower} }{ {name} }{ {/toLower} }{ {/detectKeyword} }(
104104 args: { {#toUpper} }{ {parent.type} }{ {/toUpper} }Args{ {#toUpper} }{ {name} }{ {/toUpper} },
105- client: InvokerClient[UriPackageOrWrapper]
105+ client: InvokerClient
106106 ) -> { {#return} }{ {#toPython} }{ {toGraphQLType} }{ {/toPython} }{ {/return} }:
107107 return client.invoke(
108- InvokeOptions(
109- uri=Uri.from_str("{ {parent.uri} }"),
110- method="{ {name} }",
111- args=args,
112- )
108+ uri=Uri.from_str("{ {parent.uri} }"),
109+ method="{ {name} }",
110+ args=args,
113111 )
114112 { {^last} }
115113
@@ -127,17 +125,15 @@ class {{#detectKeyword}}{{#toUpper}}{{type}}{{/toUpper}}{{/detectKeyword}}:
127125 self.uri = uri
128126
129127 { {#methods} }
130- async def { {#detectKeyword} }{ {#toLower} }{ {name} }{ {/toLower} }{ {/detectKeyword} }(
128+ def { {#detectKeyword} }{ {#toLower} }{ {name} }{ {/toLower} }{ {/detectKeyword} }(
131129 self,
132130 args: { {#toUpper} }{ {parent.type} }{ {/toUpper} }Args{ {#toUpper} }{ {name} }{ {/toUpper} },
133- client: InvokerClient[UriPackageOrWrapper]
131+ client: InvokerClient
134132 ) -> { {#return} }{ {#toPython} }{ {toGraphQLType} }{ {/toPython} }{ {/return} }:
135133 return client.invoke(
136- InvokeOptions(
137- uri=self.uri,
138- method="{ {name} }",
139- args=args,
140- )
134+ uri=self.uri,
135+ method="{ {name} }",
136+ args=args,
141137 )
142138 { {^last} }
143139
@@ -160,7 +156,7 @@ class {{#detectKeyword}}{{#toUpper}}{{namespace}}{{/toUpper}}{{/detectKeyword}}:
160156 { {#getImplementations} }
161157 { {#enabled} }
162158 def get_implementations(
163- client: InvokerClient[UriPackageOrWrapper]
159+ client: InvokerClient
164160 ) -> list[str]:
165161 impls = client.getImplementations(self.uri)
166162 return [impl.uri for impl in impls]
0 commit comments