MCPcopy
hub / github.com/python/mypy / getattr

Function getattr

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

Source from the content-addressed store, hash-verified

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: ...
411def enumerate(x: Iterable[_T]) -> Iterator[Tuple[int, _T]]: ...

Callers 15

is_assignable_slotMethod · 0.85
get_package_propertiesFunction · 0.85
getsyspathFunction · 0.85
parse_sectionFunction · 0.85
snapshotMethod · 0.85
visit_assignment_stmtMethod · 0.85
visitMethod · 0.85
invalid_typeMethod · 0.85
visitMethod · 0.85
numeric_typeMethod · 0.85
load_plugins_from_configFunction · 0.85

Calls

no outgoing calls

Tested by 15

__init__Method · 0.68
_belongs_to_runtimeFunction · 0.68
verify_mypyfileFunction · 0.68
_verify_finalFunction · 0.68
verify_typeinfoFunction · 0.68
verify_paramspecexprFunction · 0.68
_verify_abstract_statusFunction · 0.68
_verify_final_methodFunction · 0.68
verify_typealiasFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…