CodeQL library for Python
codeql/python-all 2.2.0 (changelog, source)
Search

Predicate format_items

Gets the number of format items in a format string

Import path

import semmle.python.strings
int format_items(StringLiteral e)