Skip to content

Commit

Permalink
launch_lldb: add typing
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Sep 11, 2023
1 parent fe8c637 commit 9f59e00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hilda/launch_lldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
coloredlogs.install(level=logging.DEBUG)


def disable_logs():
def disable_logs() -> None:
logging.getLogger('asyncio').disabled = True
logging.getLogger('parso.cache').disabled = True
logging.getLogger('parso.cache.pickle').disabled = True
Expand All @@ -19,11 +19,11 @@ def disable_logs():
logging.getLogger('blib2to3.pgen2.driver').disabled = True


def tunnel_local_port(port):
def tunnel_local_port(port: int) -> None:
execute(f'python3 -m pymobiledevice3 usbmux forward {port} {port} -d')


def execute(cmd):
def execute(cmd: str) -> None:
logging.debug(f'executing: {cmd}')
return os.system(cmd)

Expand Down

0 comments on commit 9f59e00

Please sign in to comment.