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

Method locals

src/_pytest/_code/code.py:237–239  ·  view source on GitHub ↗

Locals of underlying frame.

(self)

Source from the content-addressed store, hash-verified

235
236 @property
237 def locals(self) -> Dict[str, Any]:
238 """Locals of underlying frame."""
239 return self.frame.f_locals
240
241 def getfirstlinesource(self) -> int:
242 return self.frame.code.firstlineno

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected