__init__.py 178 B

12345678910
  1. from typing import Dict
  2. def syntax_aliases(x: str) -> Dict[str, str]:
  3. ans = {}
  4. for x in x.split():
  5. k, _, v = x.partition(':')
  6. ans[k] = v
  7. return ans