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

Class ReprEntryNative

src/_pytest/_code/code.py:1376–1391  ·  view source on GitHub ↗

An entry in a traceback in native style. Emits the lines as is. The lines are assumed to include the line separators. [Note that we currently use a single "entry" for the entire native traceback, so this is a bit misleading, but there's no point trying to parse or split a native tr

Source from the content-addressed store, hash-verified

1374
1375@dataclasses.dataclass(eq=False)
1376class ReprEntryNative(TerminalRepr):
1377 """An entry in a traceback in native style.
1378
1379 Emits the lines as is. The lines are assumed to include the line separators.
1380
1381 [Note that we currently use a single "entry" for the entire native
1382 traceback, so this is a bit misleading, but there's no point trying to parse
1383 or split a native traceback.]
1384 """
1385
1386 lines: Sequence[str]
1387
1388 style: ClassVar[TracebackStyle] = "native"
1389
1390 def toterminal(self, tw: TerminalWriter) -> None:
1391 tw.write("".join(self.lines))
1392
1393
1394@dataclasses.dataclass(eq=False)

Callers 2

deserialize_repr_entryFunction · 0.90
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected