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

Method statement

src/_pytest/_code/code.py:158–162  ·  src/_pytest/_code/code.py::Frame.statement

Statement this frame is at.

(self)

Source from the content-addressed store, hash-verified

156
157 @property
158 def statement(self) -> Source:
159 class="st">""class="st">"Statement this frame is at."class="st">""
160 if self.code.fullsource is None:
161 return Source(class="st">"")
162 return self.code.fullsource.getstatement(self.lineno)
163
164 def eval(self, code, **vars):
165 class="st">"""Evaluate &class="cm">#x27;code' in the frame.

Callers

nothing calls this directly

Calls 2

SourceClass · 0.90
getstatementMethod · 0.80

Tested by

no test coverage detected