gtn/.venv/Lib/site-packages/mypy/server/target.py
Tipragot 628be439b8 Ajout d'un environement de développement.
Cela permet de ne pas avoir de problèmes de compatibilité
car python est dans le git.
2023-10-26 15:33:03 +02:00

12 lines
273 B
Python

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