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

Function read_str_opt

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

Source from the content-addressed store, hash-verified

411
412
413def read_str_opt(data: ReadBuffer) -> str | None:
414 tag = read_tag(data)
415 if tag == LITERAL_NONE:
416 return None
417 assert tag == LITERAL_STR
418 return read_str_bare(data)
419
420
421def write_str_opt(data: WriteBuffer, value: str | None) -> None:

Callers 15

readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
readMethod · 0.90
read_typeFunction · 0.90
read_parse_errorFunction · 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…