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

Function setattr

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

Source from the content-addressed store, hash-verified

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]]: ...
412@overload

Callers 7

parse_config_fileFunction · 0.85
apply_changesMethod · 0.85
__setattr__Method · 0.85
replace_object_stateFunction · 0.85
set_flagsFunction · 0.85
set_strict_flagsFunction · 0.85
mypycifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…