MCPcopy Index your code
hub / github.com/bpython/bpython / _Repr

Class _Repr

bpython/inspection.py:43–56  ·  view source on GitHub ↗

Helper for `ArgSpec`: Returns the given value in `__repr__()`.

Source from the content-addressed store, hash-verified

41
42
43class _Repr:
44 """
45 Helper for `ArgSpec`: Returns the given value in `__repr__()`.
46 """
47
48 __slots__ = ("value",)
49
50 def __init__(self, value: str) -> None:
51 self.value = value
52
53 def __repr__(self) -> str:
54 return self.value
55
56 __str__ = __repr__
57
58
59@dataclass

Callers 2

_fix_default_valuesFunction · 0.85
_getpydocspecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected