MCPcopy
hub / github.com/tinygrad/tinygrad / is_docstring

Function is_docstring

sz.py:12–13  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

10TOKEN_WHITELIST = [token.OP, token.NAME, token.NUMBER, token.STRING]
11
12def is_docstring(t):
13 return t.type == token.STRING and t.string.startswith('"""') and t.line.strip().startswith('"""')
14
15def is_js_token(s): return len(s) and not s.startswith('//')
16

Callers 1

gen_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…