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

Function _spec_docstring

py/generate_bidi_protocol.py:924–928  ·  view source on GitHub ↗

Class docstring lines (with trailing blank) linking the element to its BiDi definition.

(name: str, spec_href: str | None)

Source from the content-addressed store, hash-verified

922
923
924def _spec_docstring(name: str, spec_href: str | None) -> list[str]:
925 """Class docstring lines (with trailing blank) linking the element to its BiDi definition."""
926 if not spec_href:
927 return []
928 return [f' """{name}.', "", f" See {spec_href}", ' """', ""]
929
930
931def _emit_enum(e: EnumIR) -> str:

Callers 3

_emit_enumFunction · 0.85
_emit_recordFunction · 0.85
_emit_unionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected