Browse Source

Refactor with autopep8

pull/2/head
Ali Hatami Tajik 2 years ago
parent
commit
a62a616898
  1. 1
      src/scripts/python/xutil/common.py
  2. 2
      src/scripts/python/xutil/pointer.py

1
src/scripts/python/xutil/common.py

@ -4,6 +4,7 @@ from multipledispatch import dispatch
ENCODING = 'utf-8' ENCODING = 'utf-8'
@dispatch() @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

2
src/scripts/python/xutil/pointer.py

@ -1,6 +1,7 @@
import xutil.common as com import xutil.common as com
import re import re
class XInput: class XInput:
"""Base XInput class """Base XInput class
@ -36,6 +37,7 @@ class Pointer(XInput):
def __init__(self, name, id, is_master: bool) -> None: def __init__(self, name, id, is_master: bool) -> None:
super().__init__(name, id, is_master) super().__init__(name, id, is_master)
def get_short_pointer(id) -> Pointer: def get_short_pointer(id) -> Pointer:
"""Generates Pointer object corresponding to id (short attrs) """Generates Pointer object corresponding to id (short attrs)

Loading…
Cancel
Save