Skip to content

Commit

Permalink
hidapi: Completely remove dependency on gi
Browse files Browse the repository at this point in the history
Related #2480
  • Loading branch information
MattHag authored and pfps committed Oct 8, 2024
1 parent 40033c0 commit 3c1aa35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/hidapi/hidapi_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
from threading import Thread
from time import sleep

import gi

from hidapi.common import DeviceInfo

if typing.TYPE_CHECKING:
import gi

gi.require_version("Gdk", "3.0")
from gi.repository import GLib # NOQA: E402

Expand Down
3 changes: 2 additions & 1 deletion lib/hidapi/udev_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
from time import sleep
from time import time

import gi
import pyudev

from hidapi.common import DeviceInfo

if typing.TYPE_CHECKING:
import gi

gi.require_version("Gdk", "3.0")
from gi.repository import GLib # NOQA: E402

Expand Down

0 comments on commit 3c1aa35

Please sign in to comment.