init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
8
.venv/lib/python3.8/site-packages/mypy/server/target.py
Normal file
8
.venv/lib/python3.8/site-packages/mypy/server/target.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
def trigger_to_target(s: str) -> str:
|
||||
assert s[0] == '<'
|
||||
# Strip off the angle brackets
|
||||
s = s[1:-1]
|
||||
# If there is a [wildcard] or similar, strip that off too
|
||||
if s[-1] == ']':
|
||||
s = s.split('[')[0]
|
||||
return s
|
||||
Loading…
Add table
Add a link
Reference in a new issue