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

Method get_annotation

py/generate.py:181–185  ·  view source on GitHub ↗

Return a type annotation for the CDP type.

(cls, cdp_type)

Source from the content-addressed store, hash-verified

179
180 @classmethod
181 def get_annotation(cls, cdp_type):
182 """Return a type annotation for the CDP type."""
183 if cdp_type == "any":
184 return "typing.Any"
185 return cls[cdp_type].value
186
187 @classmethod
188 def get_constructor(cls, cdp_type, val):

Callers 4

py_annotationMethod · 0.45
generate_codeMethod · 0.45
py_annotationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected