MCPcopy Index your code
hub / github.com/python/mypy / trigger_to_target

Function trigger_to_target

mypy/server/target.py:4–11  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

2
3
4def trigger_to_target(s: str) -> str:
5 assert s[0] == "<"
6 # Strip off the angle brackets
7 s = s[1:-1]
8 # If there is a [wildcard] or similar, strip that off too
9 if s[-1] == "]":
10 s = s.split("[")[0]
11 return s

Callers 2

invert_depsFunction · 0.90
find_targets_recursiveFunction · 0.90

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…