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

Function _annotation

py/generate_bidi_protocol.py:879–884  ·  view source on GitHub ↗
(f: FieldIR)

Source from the content-addressed store, hash-verified

877# Emission
878# --------------------------------------------------------------------------- #
879def _annotation(f: FieldIR) -> str:
880 if f.fixed is not _NO_FIXED:
881 return f.py_type
882 if f.required:
883 return f.py_type
884 return f"{f.py_type} | UnsetType"
885
886
887def _wire_args(f: FieldIR) -> list[str]:

Callers 1

_emit_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected