Skip to content

Commit

Permalink
fix: fixed typechecking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 25, 2023
1 parent 575a6f5 commit 0e356fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions aw_watcher_afk/afk.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import logging
import platform
import os
import platform
from datetime import datetime, timedelta, timezone
from time import sleep

from aw_core.models import Event
from aw_client import ActivityWatchClient
from aw_core.models import Event

from .config import load_config

system = platform.system()

if system == "Windows":
from .windows import seconds_since_last_input
# noreorder
from .windows import seconds_since_last_input # fmt: skip
elif system == "Darwin":
from .macos import seconds_since_last_input
# noreorder
from .macos import seconds_since_last_input # fmt: skip
elif system == "Linux":
from .unix import seconds_since_last_input
# noreorder
from .unix import seconds_since_last_input # fmt: skip
else:
raise Exception(f"Unsupported platform: {system}")

Expand Down
2 changes: 1 addition & 1 deletion aw_watcher_afk/windows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ctypes
import time
from ctypes import POINTER, WINFUNCTYPE, Structure
from ctypes import POINTER, WINFUNCTYPE, Structure # type: ignore
from ctypes.wintypes import BOOL, DWORD, UINT


Expand Down

0 comments on commit 0e356fe

Please sign in to comment.