File: __init__.py

package info (click to toggle)
kitty 0.45.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,468 kB
  • sloc: ansic: 84,285; python: 57,992; objc: 5,432; sh: 1,333; xml: 364; makefile: 144; javascript: 78
file content (6 lines) | stat: -rw-r--r-- 152 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
def syntax_aliases(x: str) -> dict[str, str]:
    ans = {}
    for x in x.split():
        k, _, v = x.partition(':')
        ans[k] = v
    return ans