fname stringlengths 63 176 | rel_fname stringclasses 706
values | line int64 -1 4.5k | name stringlengths 1 81 | kind stringclasses 2
values | category stringclasses 2
values | info stringlengths 0 77.9k ⌀ |
|---|---|---|---|---|---|---|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 644 | ReprExceptionInfo | ref | function | return ReprExceptionInfo(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 645 | ReprTracebackNative | ref | function | ReprTracebackNative(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 650 | _getreprcrash | ref | function | self._getreprcrash(),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 653 | FormattedExcinfo | ref | function | fmt = FormattedExcinfo(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 662 | repr_excinfo | ref | function | return fmt.repr_excinfo(self)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 680 | FormattedExcinfo | def | class | _getindent _getentrysource repr_args get_source get_exconly repr_locals repr_traceback_entry _makepath repr_traceback _truncate_recursive_traceback repr_excinfo |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 698 | _getindent | def | function | def _getindent(self, source: "Source") -> int:
# Figure out indent for the given source.
try:
s = str(source.getstatement(len(source) - 1))
except KeyboardInterrupt:
raise
except BaseException:
try:
s = str(source[-1])
e... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 701 | getstatement | ref | function | s = str(source.getstatement(len(source) - 1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 713 | _getentrysource | def | function | def _getentrysource(self, entry: TracebackEntry) -> Optional["Source"]:
source = entry.getsource(self.astcache)
if source is not None:
source = source.deindent()
return source
def repr_args(self, entry: TracebackEntry) -> Optional["ReprFuncArgs"]:
if self.funcargs:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 716 | deindent | ref | function | source = source.deindent()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 719 | repr_args | def | function | def repr_args(self, entry: TracebackEntry) -> Optional["ReprFuncArgs"]:
if self.funcargs:
args = []
for argname, argvalue in entry.frame.getargs(var=_True):
args.append((argname, saferepr(argvalue)))
return ReprFuncArgs(args)
return None
def g... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 723 | saferepr | ref | function | args.append((argname, saferepr(argvalue)))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 724 | ReprFuncArgs | ref | function | return ReprFuncArgs(args)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 727 | get_source | def | function | def get_source(
self,
source: Optional["Source"],
line_index: int = -1,
excinfo: Optional[ExceptionInfo[BaseException]] = None,
short: bool = _False,
) -> List[str]:
"""Return formatted and marked up source lines."""
lines = []
if source is None or... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 737 | Source | ref | function | source = Source("???")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 751 | _getindent | ref | function | indent = 4 if short else self._getindent(source)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 752 | get_exconly | ref | function | lines.extend(self.get_exconly(excinfo, indent=indent, markall=True))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 755 | get_exconly | def | function | def get_exconly(
self,
excinfo: ExceptionInfo[BaseException],
indent: int = 4,
markall: bool = _False,
) -> List[str]:
lines = []
indentstr = " " * indent
# Get the real exception information out.
exlines = excinfo.exconly(tryshort=_True).split("\n... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 764 | exconly | ref | function | exlines = excinfo.exconly(tryshort=True).split("\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 772 | repr_locals | def | function | def repr_locals(self, locals: Mapping[str, object]) -> Optional["ReprLocals"]:
if self.showlocals:
lines = []
keys = [loc for loc in locals if loc[0] != "@"]
keys.sort()
for name in keys:
value = locals[name]
if name == "__built... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 786 | saferepr | ref | function | str_repr = saferepr(value)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 788 | safeformat | ref | function | str_repr = safeformat(value)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 795 | ReprLocals | ref | function | return ReprLocals(lines)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 798 | repr_traceback_entry | def | function | def repr_traceback_entry(
self,
entry: TracebackEntry,
excinfo: Optional[ExceptionInfo[BaseException]] = None,
) -> "ReprEntry":
lines: List[str] = []
style = entry._repr_style if entry._repr_style is not None else self.style
if style in ("short", "long"):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 806 | _getentrysource | ref | function | source = self._getentrysource(entry)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 808 | Source | ref | function | source = Source("???")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 811 | getfirstlinesource | ref | function | line_index = entry.lineno - entry.getfirstlinesource()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 813 | repr_args | ref | function | reprargs = self.repr_args(entry) if not short else None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 814 | get_source | ref | function | s = self.get_source(source, line_index, excinfo, short=short)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 821 | _makepath | ref | function | path = self._makepath(entry_path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 822 | ReprFileLocation | ref | function | reprfileloc = ReprFileLocation(path, entry.lineno + 1, message)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 823 | repr_locals | ref | function | localsrepr = self.repr_locals(entry.locals)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 824 | ReprEntry | ref | function | return ReprEntry(lines, reprargs, localsrepr, reprfileloc, style)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 828 | ReprEntry | ref | function | return ReprEntry(lines, None, None, None, style)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 831 | get_exconly | ref | function | lines.extend(self.get_exconly(excinfo, indent=4))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 832 | ReprEntry | ref | function | return ReprEntry(lines, None, None, None, style)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 834 | _makepath | def | function | def _makepath(self, path: Union[Path, str]) -> str:
if not self.abspath and isinstance(path, Path):
try:
np = bestrelpath(Path.cwd(), path)
except OSError:
return str(path)
if len(np) < len(str(path)):
return np
retu... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 837 | bestrelpath | ref | function | np = bestrelpath(Path.cwd(), path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 844 | repr_traceback | def | function | def repr_traceback(self, excinfo: ExceptionInfo[BaseException]) -> "ReprTraceback":
traceback = excinfo.traceback
if self.tbfilter:
traceback = traceback.filter()
if isinstance(excinfo.value, RecursionError):
traceback, extraline = self._truncate_recursive_traceback(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 850 | _truncate_recursive_traceback | ref | function | traceback, extraline = self._truncate_recursive_traceback(traceback)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 857 | repr_traceback_entry | ref | function | reprentry = self.repr_traceback_entry(last, excinfo)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 859 | ReprTraceback | ref | function | return ReprTraceback(entries, None, style=self.style)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 863 | repr_traceback_entry | ref | function | reprentry = self.repr_traceback_entry(entry, einfo)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 865 | ReprTraceback | ref | function | return ReprTraceback(entries, extraline, style=self.style)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 867 | _truncate_recursive_traceback | def | function | def _truncate_recursive_traceback(
self, traceback: Traceback
) -> Tuple[Traceback, Optional[str]]:
"""Truncate the given recursive traceback trying to find the starting
point of the recursion.
The detection is done by going through each traceback entry and
finding the p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 883 | recursionindex | ref | function | recursionindex = traceback.recursionindex()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 909 | repr_excinfo | def | function | def repr_excinfo(
self, excinfo: ExceptionInfo[BaseException]
) -> "ExceptionChainRepr":
repr_chain: List[
Tuple[ReprTraceback, Optional[ReprFileLocation], Optional[str]]
] = []
e: Optional[BaseException] = excinfo.value
excinfo_: Optional[ExceptionInfo[BaseEx... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 922 | repr_traceback | ref | function | reprtraceback = self.repr_traceback(excinfo_)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 924 | _getreprcrash | ref | function | excinfo_._getreprcrash() if self.style != "value" else None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 929 | ReprTracebackNative | ref | function | reprtraceback = ReprTracebackNative(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 938 | from_exc_info | ref | function | ExceptionInfo.from_exc_info((type(e), e, e.__traceback__))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 948 | from_exc_info | ref | function | ExceptionInfo.from_exc_info((type(e), e, e.__traceback__))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 956 | ExceptionChainRepr | ref | function | return ExceptionChainRepr(repr_chain)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 960 | TerminalRepr | def | class | __str__ __repr__ toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 965 | TerminalWriter | ref | function | tw = TerminalWriter(file=io)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 966 | toterminal | ref | function | self.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 972 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 978 | ExceptionRepr | def | class | __attrs_post_init__ addsection toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 983 | __attrs_post_init__ | def | function | def __attrs_post_init__(self) -> None:
self.sections: List[Tuple[str, str, str]] = []
def addsection(self, name: str, content: str, sep: str = "-") -> None:
self.sections.append((name, content, sep))
def toterminal(self, tw: TerminalWriter) -> None:
for name, content, sep in self.s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 986 | addsection | def | function | def addsection(self, name: str, content: str, sep: str = "-") -> None:
self.sections.append((name, content, sep))
def toterminal(self, tw: TerminalWriter) -> None:
for name, content, sep in self.sections:
tw.sep(sep, name)
tw.line(content)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 989 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 991 | sep | ref | function | tw.sep(sep, name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 992 | line | ref | function | tw.line(content)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 996 | ExceptionChainRepr | def | class | __attrs_post_init__ toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 999 | __attrs_post_init__ | def | function | def __attrs_post_init__(self) -> None:
self.sections: List[Tuple[str, str, str]] = []
def addsection(self, name: str, content: str, sep: str = "-") -> None:
self.sections.append((name, content, sep))
def toterminal(self, tw: TerminalWriter) -> None:
for name, content, sep in self.s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,000 | __attrs_post_init__ | ref | function | super().__attrs_post_init__()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,006 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,008 | toterminal | ref | function | element[0].toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,010 | line | ref | function | tw.line("")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,011 | line | ref | function | tw.line(element[2], yellow=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,012 | toterminal | ref | function | super().toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,016 | ReprExceptionInfo | def | class | toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,020 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,021 | toterminal | ref | function | self.reprtraceback.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,022 | toterminal | ref | function | super().toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,026 | ReprTraceback | def | class | toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,033 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,037 | line | ref | function | tw.line("")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,038 | toterminal | ref | function | entry.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,046 | sep | ref | function | tw.sep(self.entrysep)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,049 | line | ref | function | tw.line(self.extraline)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,052 | ReprTracebackNative | def | class | __init__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,055 | ReprEntryNative | ref | function | self.reprentries = [ReprEntryNative(tblines)]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,060 | ReprEntryNative | def | class | toterminal |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,065 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,070 | ReprEntry | def | class | _write_entry_lines toterminal __str__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,077 | _write_entry_lines | def | function | def _write_entry_lines(self, tw: TerminalWriter) -> None:
"""Write the source code portions of a list of traceback entries with syntax highlighting.
Usually entries are lines like these:
" x = 1"
"> assert x == 2"
"E assert 1 == 2"
This functi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,115 | _write_source | ref | function | tw._write_source(source_lines, indents)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,119 | line | ref | function | tw.line(line, bold=True, red=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,121 | toterminal | def | function | def toterminal(self, tw: TerminalWriter) -> None:
raise NotImplementedError()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,124 | toterminal | ref | function | self.reprfileloc.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,125 | _write_entry_lines | ref | function | self._write_entry_lines(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,127 | toterminal | ref | function | self.reprlocals.toterminal(tw, indent=" " * 8)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,131 | toterminal | ref | function | self.reprfuncargs.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,133 | _write_entry_lines | ref | function | self._write_entry_lines(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,136 | line | ref | function | tw.line("")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,137 | toterminal | ref | function | self.reprlocals.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,140 | line | ref | function | tw.line("")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,141 | toterminal | ref | function | self.reprfileloc.toterminal(tw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/_code/code.py | src/_pytest/_code/code.py | 1,150 | ReprFileLocation | def | class | toterminal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.