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

Function hasattr

mypyc/test-data/fixtures/ir.py:407–407  ·  view source on GitHub ↗
(obj: object, name: str)

Source from the content-addressed store, hash-verified

405def hash(o: object) -> int: ...
406def globals() -> Dict[str, Any]: ...
407def hasattr(obj: object, name: str) -> bool: ...
408def getattr(obj: object, name: str, default: Any = None) -> Any: ...
409def setattr(obj: object, name: str, value: Any) -> None: ...
410def delattr(obj: object, name: str) -> None: ...

Callers 15

getsitepackagesFunction · 0.85
parse_sectionFunction · 0.85
snapshotMethod · 0.85
load_plugins_from_configFunction · 0.85
take_module_snapshotFunction · 0.85
collect_memory_statsFunction · 0.85
find_recursive_objectsFunction · 0.85
verify_mypyfileFunction · 0.85
safe_inspect_signatureFunction · 0.85
cmd_statusMethod · 0.85

Calls

no outgoing calls

Tested by 5

verify_mypyfileFunction · 0.68
safe_inspect_signatureFunction · 0.68
get_dictFunction · 0.68
run_generatorFunction · 0.68
is_gil_disabledFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…