hidapi: Completely remove dependency on gi

Related #2480
This commit is contained in:
MattHag 2024-09-20 14:51:58 +02:00 committed by Peter F. Patel-Schneider
parent 40033c0183
commit 3c1aa35067
2 changed files with 4 additions and 3 deletions

View File

@ -34,11 +34,11 @@ import typing
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

View File

@ -37,12 +37,13 @@ from select import select
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