MCPcopy Create free account
hub / github.com/pytest-dev/pytest / setattr

Method setattr

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

Source from the content-addressed store, hash-verified

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

Calls 3

derive_importpathFunction · 0.85
appendMethod · 0.80
getMethod · 0.45