MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / params_for

Method params_for

py/generate_bidi_protocol.py:557–567  ·  view source on GitHub ↗
(self, params_ref: dict | None)

Source from the content-addressed store, hash-verified

555 )
556
557 def params_for(self, params_ref: dict | None) -> list[ParamIR] | None:
558 if not params_ref:
559 return []
560 type_ = self.types.get(params_ref["ref"])
561 if not type_:
562 return None
563 if type_["kind"] == "record":
564 return [self._param_ir(f) for f in type_["fields"]]
565 if type_["kind"] == "union":
566 return self._union_params(type_, params_ref["ref"])
567 return None
568
569 def _param_ir(self, field_: dict, required: bool | None = None) -> ParamIR:
570 py, refs = self.py_type(field_["type"])

Callers 1

build_commandFunction · 0.45

Calls 3

_param_irMethod · 0.95
_union_paramsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected