@@ -255,23 +255,15 @@ async def _execute(self, execute_context: abstract.ExecuteContext) -> None:
255
255
async def describe (
256
256
self , describe_context : abstract .DescribeContext
257
257
) -> abstract .DescribeResult :
258
- cardinality , in_dc , out_dc , capabilities = await self ._protocol ._parse (
259
- describe_context .query ,
260
- reg = protocol .CodecsRegistry (),
261
- inline_typenames = describe_context .inject_type_names ,
262
- output_format = describe_context .output_format ,
263
- expect_one = describe_context .expect_one ,
264
- allow_capabilities = enums .Capability .EXECUTE ,
265
- state = (
266
- describe_context .state .as_dict ()
267
- if describe_context .state else None
268
- ),
258
+ ctx = describe_context .lower (
259
+ allow_capabilities = enums .Capability .EXECUTE
269
260
)
261
+ await self ._protocol ._parse (ctx )
270
262
return abstract .DescribeResult (
271
- input_type = in_dc .make_type (describe_context ),
272
- output_type = out_dc .make_type (describe_context ),
273
- output_cardinality = enums .Cardinality (cardinality [0 ]),
274
- capabilities = capabilities ,
263
+ input_type = ctx . in_dc .make_type (describe_context ),
264
+ output_type = ctx . out_dc .make_type (describe_context ),
265
+ output_cardinality = enums .Cardinality (ctx . cardinality [0 ]),
266
+ capabilities = ctx . capabilities ,
275
267
)
276
268
277
269
def terminate (self ):
0 commit comments