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

Function parse_conversion_specifiers

mypy/checkstrformat.py:168–173  ·  view source on GitHub ↗

Parse c-printf-style format string into list of conversion specifiers.

(format_str: str)

Source from the content-addressed store, hash-verified

166
167
168def parse_conversion_specifiers(format_str: str) -> list[ConversionSpecifier]:
169 """Parse c-printf-style format string into list of conversion specifiers."""
170 specifiers: list[ConversionSpecifier] = []
171 for m in re.finditer(FORMAT_RE, format_str):
172 specifiers.append(ConversionSpecifier(m, start_pos=m.start()))
173 return specifiers
174
175
176def parse_format_value(

Callers 2

tokenizer_printf_styleFunction · 0.90

Calls 2

ConversionSpecifierClass · 0.85
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…