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

Function read_int_opt

mypy/cache.py:397–402  ·  view source on GitHub ↗
(data: ReadBuffer)

Source from the content-addressed store, hash-verified

395
396
397def read_int_opt(data: ReadBuffer) -> int | None:
398 tag = read_tag(data)
399 if tag == LITERAL_NONE:
400 return None
401 assert tag == LITERAL_INT
402 return read_int_bare(data)
403
404
405def write_int_opt(data: WriteBuffer, value: int | None) -> None:

Callers 1

readMethod · 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…