MCPcopy Index your code
hub / github.com/python/cpython / is_label

Function is_label

Tools/cases_generator/cwriter.py:178–179  ·  view source on GitHub ↗
(txt: str)

Source from the content-addressed store, hash-verified

176
177
178def is_label(txt: str) -> bool:
179 return not txt.startswith("//") and txt.endswith(":")

Callers 2

maybe_dedentMethod · 0.85
maybe_indentMethod · 0.85

Calls 2

startswithMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…