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

Function get_flags

mypy/nodes.py:5220–5221  ·  view source on GitHub ↗
(node: Node, names: list[str])

Source from the content-addressed store, hash-verified

5218
5219
5220def get_flags(node: Node, names: list[str]) -> list[str]:
5221 return [name for name in names if getattr(node, name)]
5222
5223
5224def set_flags(node: Node, flags: list[str]) -> None:

Callers 8

convert_func_defFunction · 0.90
convert_varFunction · 0.90
convert_type_infoFunction · 0.90
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85
serializeMethod · 0.85

Calls 1

getattrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…