MCPcopy
hub / github.com/pytest-dev/pytest / setattr

Method setattr

src/_pytest/monkeypatch.py:161–167  ·  view source on GitHub ↗
(
        self,
        target: str,
        name: object,
        value: NotSetType = ...,
        raising: bool = ...,
    )

Source from the content-addressed store, hash-verified

159
160 @overload
161 def setattr(
162 self,
163 target: str,
164 name: object,
165 value: NotSetType = ...,
166 raising: bool = ...,
167 ) -> None: ...
168
169 @overload
170 def setattr(

Callers 15

pytest_configureFunction · 0.95
pytest_configureFunction · 0.95
test_setattrFunction · 0.95
test_delattrFunction · 0.95
patchMethod · 0.80
pytest_runtest_protocolFunction · 0.80
test_rewriteMethod · 0.80
test_isattyMethod · 0.80
test_line_with_reprcrashFunction · 0.80

Calls 3

derive_importpathFunction · 0.85
appendMethod · 0.80
getMethod · 0.45