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

Method get_annotation

py/generate.py:182–186  ·  view source on GitHub ↗

Return a type annotation for the CDP type.

(cls, cdp_type)

Source from the content-addressed store, hash-verified

180
181 @classmethod
182 def get_annotation(cls, cdp_type):
183 """Return a type annotation for the CDP type."""
184 if cdp_type == "any":
185 return "typing.Any"
186 return cls[cdp_type].value
187
188 @classmethod
189 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