mirror of https://github.com/Yubico/python-fido2
Fix platform specific type checking.
This commit is contained in:
parent
0436ab9026
commit
c77d30d456
|
@ -24,6 +24,10 @@ from array import array
|
|||
from typing import Set
|
||||
|
||||
import logging
|
||||
import sys
|
||||
|
||||
# Don't typecheck this file on Windows
|
||||
assert sys.platform != "win32" # nosec
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -17,13 +17,17 @@
|
|||
|
||||
from .base import HidDescriptor, CtapHidConnection, FIDO_USAGE_PAGE, FIDO_USAGE
|
||||
|
||||
import ctypes
|
||||
import platform
|
||||
from ctypes import WinDLL, WinError # type: ignore
|
||||
from ctypes import wintypes, LibraryLoader
|
||||
from typing import Dict, cast
|
||||
|
||||
import ctypes
|
||||
import platform
|
||||
import logging
|
||||
import sys
|
||||
|
||||
# Only typecheck this file on Windows
|
||||
assert sys.platform == "win32" # nosec
|
||||
from ctypes import WinDLL, WinError # noqa: E402
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue