MCPcopy Create free account
hub / github.com/RustPython/RustPython / real_len

Function real_len

Lib/_pyrepl/completing_reader.py:58–59  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

56
57
58def real_len(s: str) -> int:
59 return len(stripcolor(s))
60
61
62def left_align(s: str, maxlen: int) -> str:

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
stripcolorFunction · 0.85

Tested by

no test coverage detected