Major fixes and new features
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
11
venv/lib/python3.12/site-packages/mypy/server/target.py
Normal file
11
venv/lib/python3.12/site-packages/mypy/server/target.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user