Browse Source

Remove dispatches from x.py

input
Ali Hatami Tajik 2 years ago
parent
commit
bcc549cbb6
  1. 3
      src/scripts/python/util/x.py

3
src/scripts/python/util/x.py

@ -1,11 +1,9 @@
import subprocess import subprocess
from multipledispatch import dispatch
from pathlib import Path from pathlib import Path
ENCODING = "utf-8" ENCODING = "utf-8"
@dispatch()
def get_list_short(): def get_list_short():
"""Returns string output of the `xinput --list --short` command encoded as """Returns string output of the `xinput --list --short` command encoded as
UTF-8""" UTF-8"""
@ -15,7 +13,6 @@ def get_list_short():
return completed.stdout.decode(ENCODING) return completed.stdout.decode(ENCODING)
@dispatch(int)
def get_list_short_with(id): def get_list_short_with(id):
"""Short List of the id """Short List of the id

Loading…
Cancel
Save