MCPcopy Index your code
hub / github.com/python/mypy / write_int_opt

Function write_int_opt

mypy/cache.py:405–410  ·  view source on GitHub ↗
(data: WriteBuffer, value: int | None)

Source from the content-addressed store, hash-verified

403
404
405def write_int_opt(data: WriteBuffer, value: int | None) -> None:
406 if value is not None:
407 write_tag(data, LITERAL_INT)
408 write_int_bare(data, value)
409 else:
410 write_tag(data, LITERAL_NONE)
411
412
413def read_str_opt(data: ReadBuffer) -> str | None:

Callers 1

writeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…