changeset 1882:5c1b662c0263

stub updates Ignore-this: 1c3a7199c6f2b6e85fd40c2d6bd2613c
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 28 May 2019 06:42:27 +0000
parents baae0bdfde74
children 17bee25a20cb
files stubs/cycloneerr/__init__.pyi stubs/cycloneerr/cycloneerr.pyi stubs/cycloneerr/setup.pyi stubs/cycloneerr/tasks.pyi stubs/pyudmx/__init__.pyi stubs/pyudmx/pyudmx.pyi stubs/twisted/internet/threads.pyi stubs/twisted/internet/utils.pyi stubs/usb/__init__.pyi stubs/usb/_debug.pyi stubs/usb/_interop.pyi stubs/usb/_lookup.pyi stubs/usb/_objfinalizer.pyi stubs/usb/backend/__init__.pyi stubs/usb/backend/libusb0.pyi stubs/usb/backend/libusb1.pyi stubs/usb/backend/openusb.pyi stubs/usb/control.pyi stubs/usb/core.pyi stubs/usb/libloader.pyi stubs/usb/util.pyi
diffstat 21 files changed, 590 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/stubs/cycloneerr/__init__.pyi	Mon May 27 12:44:18 2019 +0000
+++ b/stubs/cycloneerr/__init__.pyi	Tue May 28 06:42:27 2019 +0000
@@ -2,4 +2,9 @@
 #
 # NOTE: This dynamically typed stub was automatically generated by stubgen.
 
-from .cycloneerr import PrettyErrorHandler
+
+
+from typing import Any
+
+class PrettyErrorHandler:
+    def get_error_html(self, status_code: Any, **kwargs: Any): ...
--- a/stubs/cycloneerr/cycloneerr.pyi	Mon May 27 12:44:18 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-# Stubs for cycloneerr.cycloneerr (Python 3)
-#
-# NOTE: This dynamically typed stub was automatically generated by stubgen.
-
-from typing import Any
-
-class PrettyErrorHandler:
-    def get_error_html(self, status_code: Any, **kwargs: Any): ...
--- a/stubs/cycloneerr/setup.pyi	Mon May 27 12:44:18 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-# Stubs for cycloneerr.setup (Python 3)
-#
-# NOTE: This dynamically typed stub was automatically generated by stubgen.
-
--- a/stubs/cycloneerr/tasks.pyi	Mon May 27 12:44:18 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-# Stubs for cycloneerr.tasks (Python 3)
-#
-# NOTE: This dynamically typed stub was automatically generated by stubgen.
-
-from typing import Any
-
-def release(ctx: Any) -> None: ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/pyudmx/__init__.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,4 @@
+# Stubs for pyudmx (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/pyudmx/pyudmx.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,15 @@
+# Stubs for pyudmx.pyudmx (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+import usb.core
+from typing import List, Union
+
+class uDMXDevice:
+    def __init__(self) -> None: ...
+    @property
+    def Device(self) -> usb.core.Device: ...
+    def open(self, vendor_id: int=..., product_id: int=..., bus: int=..., address: int=...) -> bool: ...
+    def close(self) -> None: ...
+    def send_single_value(self, channel: int, value: int) -> int: ...
+    def send_multi_value(self, channel: int, values: Union[List[int], bytearray]) -> int: ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/twisted/internet/threads.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,10 @@
+# Stubs for twisted.internet.threads (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any
+
+def deferToThreadPool(reactor: Any, threadpool: Any, f: Any, *args: Any, **kwargs: Any): ...
+def deferToThread(f: Any, *args: Any, **kwargs: Any): ...
+def callMultipleInThread(tupleList: Any) -> None: ...
+def blockingCallFromThread(reactor: Any, f: Any, *a: Any, **kw: Any): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/twisted/internet/utils.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,43 @@
+# Stubs for twisted.internet.utils (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from twisted.internet import protocol
+from typing import Any, Optional
+
+class _UnexpectedErrorOutput(IOError):
+    processEnded: Any = ...
+    def __init__(self, text: Any, processEnded: Any) -> None: ...
+
+class _BackRelay(protocol.ProcessProtocol):
+    deferred: Any = ...
+    s: Any = ...
+    errReceived: Any = ...
+    def __init__(self, deferred: Any, errortoo: int = ...) -> None: ...
+    onProcessEnded: Any = ...
+    def errReceivedIsBad(self, text: Any) -> None: ...
+    def errReceivedIsGood(self, text: Any) -> None: ...
+    def outReceived(self, text: Any) -> None: ...
+    def processEnded(self, reason: Any) -> None: ...
+
+def getProcessOutput(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ..., errortoo: int = ...): ...
+
+class _ValueGetter(protocol.ProcessProtocol):
+    deferred: Any = ...
+    def __init__(self, deferred: Any) -> None: ...
+    def processEnded(self, reason: Any) -> None: ...
+
+def getProcessValue(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ...): ...
+
+class _EverythingGetter(protocol.ProcessProtocol):
+    deferred: Any = ...
+    outBuf: Any = ...
+    errBuf: Any = ...
+    outReceived: Any = ...
+    errReceived: Any = ...
+    def __init__(self, deferred: Any) -> None: ...
+    def processEnded(self, reason: Any) -> None: ...
+
+def getProcessOutputAndValue(executable: Any, args: Any = ..., env: Any = ..., path: Optional[Any] = ..., reactor: Optional[Any] = ...): ...
+def runWithWarningsSuppressed(suppressedWarnings: Any, f: Any, *a: Any, **kw: Any): ...
+def suppressWarnings(f: Any, *suppressedWarnings: Any): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/__init__.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,12 @@
+# Stubs for usb (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+
+# Names in __all__ with no definition:
+#   backend
+#   control
+#   core
+#   legacy
+#   libloader
+#   util
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/_debug.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,8 @@
+# Stubs for usb._debug (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any
+
+def methodtrace(logger: Any): ...
+def functiontrace(logger: Any): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/_interop.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,9 @@
+# Stubs for usb._interop (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+# Names in __all__ with no definition:
+#   _next
+#   _reduce
+#   _set
+#   _update_wrapper
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/_lookup.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,12 @@
+# Stubs for usb._lookup (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any
+
+descriptors: Any
+device_classes: Any
+interface_classes: Any
+ep_attributes: Any
+MAX_POWER_UNITS_USB2p0: int
+MAX_POWER_UNITS_USB_SUPERSPEED: int
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/_objfinalizer.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,17 @@
+# Stubs for usb._objfinalizer (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any
+
+class _AutoFinalizedObjectBase:
+    def __new__(cls, *args: Any, **kwargs: Any): ...
+    def finalize(self) -> None: ...
+    def __del__(self) -> None: ...
+
+class AutoFinalizedObject(_AutoFinalizedObjectBase):
+    def __new__(cls, *args: Any, **kwargs: Any): ...
+    def finalize(self) -> None: ...
+
+class AutoFinalizedObject(_AutoFinalizedObjectBase):
+    def finalize(self) -> None: ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/backend/__init__.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,37 @@
+# Stubs for usb.backend (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+import usb._objfinalizer as _objfinalizer
+from typing import Any
+
+class IBackend(_objfinalizer.AutoFinalizedObject):
+    def enumerate_devices(self) -> None: ...
+    def get_device_descriptor(self, dev: Any) -> None: ...
+    def get_configuration_descriptor(self, dev: Any, config: Any) -> None: ...
+    def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any) -> None: ...
+    def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any) -> None: ...
+    def open_device(self, dev: Any) -> None: ...
+    def close_device(self, dev_handle: Any) -> None: ...
+    def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ...
+    def get_configuration(self, dev_handle: Any) -> None: ...
+    def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ...
+    def claim_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def release_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any) -> None: ...
+    def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any) -> None: ...
+    def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any) -> None: ...
+    def intr_read(self, dev_handle: Any, ep: Any, intf: Any, size: Any, timeout: Any) -> None: ...
+    def iso_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any) -> None: ...
+    def iso_read(self, dev_handle: Any, ep: Any, intf: Any, size: Any, timeout: Any) -> None: ...
+    def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any) -> None: ...
+    def clear_halt(self, dev_handle: Any, ep: Any) -> None: ...
+    def reset_device(self, dev_handle: Any) -> None: ...
+    def is_kernel_driver_active(self, dev_handle: Any, intf: Any) -> None: ...
+    def detach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ...
+    def attach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ...
+
+# Names in __all__ with no definition:
+#   libusb01
+#   libusb10
+#   openusb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/backend/libusb0.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,66 @@
+# Stubs for usb.backend.libusb0 (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from ctypes import *
+import usb.libloader
+from typing import Any, Optional
+
+class _PackPolicy: ...
+class _usb_descriptor_header(Structure): ...
+class _usb_string_descriptor(Structure): ...
+class _usb_endpoint_descriptor(Structure, _PackPolicy): ...
+class _usb_interface_descriptor(Structure, _PackPolicy): ...
+class _usb_interface(Structure, _PackPolicy): ...
+class _usb_config_descriptor(Structure, _PackPolicy): ...
+class _usb_device_descriptor(Structure, _PackPolicy): ...
+class _usb_device(Structure, _PackPolicy): ...
+class _usb_bus(Structure, _PackPolicy): ...
+
+class _DeviceDescriptor:
+    bLength: Any = ...
+    bDescriptorType: Any = ...
+    bcdUSB: Any = ...
+    bDeviceClass: Any = ...
+    bDeviceSubClass: Any = ...
+    bDeviceProtocol: Any = ...
+    bMaxPacketSize0: Any = ...
+    idVendor: Any = ...
+    idProduct: Any = ...
+    bcdDevice: Any = ...
+    iManufacturer: Any = ...
+    iProduct: Any = ...
+    iSerialNumber: Any = ...
+    bNumConfigurations: Any = ...
+    address: Any = ...
+    bus: Any = ...
+    port_number: Any = ...
+    port_numbers: Any = ...
+    speed: Any = ...
+    def __init__(self, dev: Any) -> None: ...
+
+class _LibUSB(usb.backend.IBackend):
+    def enumerate_devices(self) -> None: ...
+    def get_device_descriptor(self, dev: Any): ...
+    def get_configuration_descriptor(self, dev: Any, config: Any): ...
+    def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ...
+    def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ...
+    def open_device(self, dev: Any): ...
+    def close_device(self, dev_handle: Any) -> None: ...
+    def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ...
+    def get_configuration(self, dev_handle: Any): ...
+    def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ...
+    def claim_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def release_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def iso_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def iso_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ...
+    def clear_halt(self, dev_handle: Any, ep: Any) -> None: ...
+    def reset_device(self, dev_handle: Any) -> None: ...
+    def detach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ...
+
+def get_backend(find_library: Optional[Any] = ...): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/backend/libusb1.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,101 @@
+# Stubs for usb.backend.libusb1 (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from ctypes import *
+import usb.libloader as _objfinalizer
+import usb.libloader
+from typing import Any, Optional
+
+LIBUSB_ERROR_IO: int
+LIBUSB_ERROR_INVALID_PARAM: int
+LIBUSB_ERROR_ACCESS: int
+LIBUSB_ERROR_NO_DEVICE: int
+LIBUSB_ERROR_NOT_FOUND: int
+LIBUSB_ERROR_BUSY: int
+LIBUSB_ERROR_TIMEOUT: int
+LIBUSB_ERROR_OVERFLOW: int
+LIBUSB_ERROR_PIPE: int
+LIBUSB_ERROR_INTERRUPTED: int
+LIBUSB_ERROR_NO_MEM: int
+LIBUSB_ERROR_NOT_SUPPORTED: int
+LIBUSB_TRANSFER_ERROR: int
+LIBUSB_TRANSFER_TIMED_OUT: int
+LIBUSB_TRANSFER_CANCELLED: int
+LIBUSB_TRANSFER_STALL: int
+LIBUSB_TRANSFER_NO_DEVICE: int
+LIBUSB_TRANSFER_OVERFLOW: int
+
+class _libusb_endpoint_descriptor(Structure): ...
+class _libusb_interface_descriptor(Structure): ...
+class _libusb_interface(Structure): ...
+class _libusb_config_descriptor(Structure): ...
+class _libusb_device_descriptor(Structure): ...
+class _libusb_iso_packet_descriptor(Structure): ...
+class _libusb_transfer(Structure): ...
+
+class _Device(_objfinalizer.AutoFinalizedObject):
+    devid: Any = ...
+    def __init__(self, devid: Any) -> None: ...
+
+class _WrapDescriptor:
+    obj: Any = ...
+    desc: Any = ...
+    def __init__(self, desc: Any, obj: Optional[Any] = ...) -> None: ...
+    def __getattr__(self, name: Any): ...
+
+class _ConfigDescriptor(_objfinalizer.AutoFinalizedObject):
+    desc: Any = ...
+    def __init__(self, desc: Any) -> None: ...
+    def __getattr__(self, name: Any): ...
+
+class _DevIterator(_objfinalizer.AutoFinalizedObject):
+    dev_list: Any = ...
+    num_devs: Any = ...
+    def __init__(self, ctx: Any) -> None: ...
+    def __iter__(self) -> None: ...
+
+class _DeviceHandle:
+    handle: Any = ...
+    devid: Any = ...
+    def __init__(self, dev: Any) -> None: ...
+
+class _IsoTransferHandler(_objfinalizer.AutoFinalizedObject):
+    transfer: Any = ...
+    def __init__(self, dev_handle: Any, ep: Any, buff: Any, timeout: Any) -> None: ...
+    def submit(self, ctx: Optional[Any] = ...): ...
+
+class _LibUSB(usb.backend.IBackend):
+    lib: Any = ...
+    ctx: Any = ...
+    def __init__(self, lib: Any) -> None: ...
+    def enumerate_devices(self): ...
+    def get_device_descriptor(self, dev: Any): ...
+    def get_configuration_descriptor(self, dev: Any, config: Any): ...
+    def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ...
+    def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ...
+    def open_device(self, dev: Any): ...
+    def close_device(self, dev_handle: Any) -> None: ...
+    def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ...
+    def get_configuration(self, dev_handle: Any): ...
+    def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ...
+    def claim_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def release_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def iso_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def iso_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ...
+    def clear_halt(self, dev_handle: Any, ep: Any) -> None: ...
+    def reset_device(self, dev_handle: Any) -> None: ...
+    def is_kernel_driver_active(self, dev_handle: Any, intf: Any): ...
+    def detach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ...
+    def attach_kernel_driver(self, dev_handle: Any, intf: Any) -> None: ...
+
+def get_backend(find_library: Optional[Any] = ...): ...
+
+# Names in __all__ with no definition:
+#   LIBUSB_ERROR_OTHERLIBUSB_TRANSFER_COMPLETED
+#   LIBUSB_SUCESS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/backend/openusb.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,71 @@
+# Stubs for usb.backend.openusb (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from ctypes import *
+import usb.libloader as _objfinalizer
+import usb.libloader
+from typing import Any
+
+class _usb_endpoint_desc(Structure): ...
+class _usb_interface_desc(Structure): ...
+class _usb_config_desc(Structure): ...
+class _usb_device_desc(Structure): ...
+class _openusb_request_result(Structure): ...
+
+class _openusb_ctrl_request(Structure):
+    payload: Any = ...
+    length: int = ...
+    timeout: int = ...
+    flags: int = ...
+    next: Any = ...
+    def __init__(self) -> None: ...
+    class _openusb_ctrl_setup(Structure): ...
+
+class _openusb_intr_request(Structure): ...
+class _openusb_bulk_request(Structure): ...
+
+class _openusb_isoc_pkts(Structure):
+    class _openusb_isoc_packet(Structure): ...
+
+class _openusb_isoc_request(Structure): ...
+
+class _Context(_objfinalizer.AutoFinalizedObject):
+    handle: Any = ...
+    def __init__(self) -> None: ...
+
+class _BusIterator(_objfinalizer.AutoFinalizedObject):
+    buslist: Any = ...
+    num_busids: Any = ...
+    def __init__(self) -> None: ...
+    def __iter__(self) -> None: ...
+
+class _DevIterator(_objfinalizer.AutoFinalizedObject):
+    devlist: Any = ...
+    num_devids: Any = ...
+    def __init__(self, busid: Any) -> None: ...
+    def __iter__(self) -> None: ...
+
+class _OpenUSB(usb.backend.IBackend):
+    def enumerate_devices(self) -> None: ...
+    def get_device_descriptor(self, dev: Any): ...
+    def get_configuration_descriptor(self, dev: Any, config: Any): ...
+    def get_interface_descriptor(self, dev: Any, intf: Any, alt: Any, config: Any): ...
+    def get_endpoint_descriptor(self, dev: Any, ep: Any, intf: Any, alt: Any, config: Any): ...
+    def open_device(self, dev: Any): ...
+    def close_device(self, dev_handle: Any) -> None: ...
+    def set_configuration(self, dev_handle: Any, config_value: Any) -> None: ...
+    def get_configuration(self, dev_handle: Any): ...
+    def set_interface_altsetting(self, dev_handle: Any, intf: Any, altsetting: Any) -> None: ...
+    def claim_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def release_interface(self, dev_handle: Any, intf: Any) -> None: ...
+    def bulk_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def bulk_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def intr_write(self, dev_handle: Any, ep: Any, intf: Any, data: Any, timeout: Any): ...
+    def intr_read(self, dev_handle: Any, ep: Any, intf: Any, buff: Any, timeout: Any): ...
+    def ctrl_transfer(self, dev_handle: Any, bmRequestType: Any, bRequest: Any, wValue: Any, wIndex: Any, data: Any, timeout: Any): ...
+    def reset_device(self, dev_handle: Any) -> None: ...
+    def clear_halt(self, dev_handle: Any, ep: Any) -> None: ...
+
+# Names in __all__ with no definition:
+#   get_backendOPENUSB_SUCCESSOPENUSB_PLATFORM_FAILUREOPENUSB_NO_RESOURCESOPENUSB_NO_BANDWIDTHOPENUSB_NOT_SUPPORTEDOPENUSB_HC_HARDWARE_ERROROPENUSB_INVALID_PERMOPENUSB_BUSYOPENUSB_BADARGOPENUSB_NOACCESSOPENUSB_PARSE_ERROROPENUSB_UNKNOWN_DEVICEOPENUSB_INVALID_HANDLEOPENUSB_SYS_FUNC_FAILUREOPENUSB_NULL_LISTOPENUSB_CB_CONTINUEOPENUSB_CB_TERMINATEOPENUSB_IO_STALLOPENUSB_IO_CRC_ERROROPENUSB_IO_DEVICE_HUNGOPENUSB_IO_REQ_TOO_BIGOPENUSB_IO_BIT_STUFFINGOPENUSB_IO_UNEXPECTED_PIDOPENUSB_IO_DATA_OVERRUNOPENUSB_IO_DATA_UNDERRUNOPENUSB_IO_BUFFER_OVERRUNOPENUSB_IO_BUFFER_UNDERRUNOPENUSB_IO_PID_CHECK_FAILUREOPENUSB_IO_DATA_TOGGLE_MISMATCHOPENUSB_IO_TIMEOUTOPENUSB_IO_CANCELED
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/control.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,22 @@
+# Stubs for usb.control (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any, Optional
+
+ENDPOINT_HALT: int
+FUNCTION_SUSPEND: int
+DEVICE_REMOTE_WAKEUP: int
+U1_ENABLE: int
+U2_ENABLE: int
+LTM_ENABLE: int
+
+def get_status(dev: Any, recipient: Optional[Any] = ...): ...
+def clear_feature(dev: Any, feature: Any, recipient: Optional[Any] = ...) -> None: ...
+def set_feature(dev: Any, feature: Any, recipient: Optional[Any] = ...) -> None: ...
+def get_descriptor(dev: Any, desc_size: Any, desc_type: Any, desc_index: Any, wIndex: int = ...): ...
+def set_descriptor(dev: Any, desc: Any, desc_type: Any, desc_index: Any, wIndex: Optional[Any] = ...) -> None: ...
+def get_configuration(dev: Any): ...
+def set_configuration(dev: Any, bConfigurationNumber: Any) -> None: ...
+def get_interface(dev: Any, bInterfaceNumber: Any): ...
+def set_interface(dev: Any, bInterfaceNumber: Any, bAlternateSetting: Any) -> None: ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/core.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,97 @@
+# Stubs for usb.core (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+import usb._lookup as _objfinalizer
+from typing import Any, Optional
+
+class _DescriptorInfo(str): ...
+
+class _ResourceManager:
+    backend: Any = ...
+    dev: Any = ...
+    handle: Any = ...
+    lock: Any = ...
+    def __init__(self, dev: Any, backend: Any) -> None: ...
+    def managed_open(self): ...
+    def managed_close(self) -> None: ...
+    index: Any = ...
+    bConfigurationValue: int = ...
+    def managed_set_configuration(self, device: Any, config: Any) -> None: ...
+    def managed_claim_interface(self, device: Any, intf: Any) -> None: ...
+    def managed_release_interface(self, device: Any, intf: Any) -> None: ...
+    def managed_set_interface(self, device: Any, intf: Any, alt: Any) -> None: ...
+    def setup_request(self, device: Any, endpoint: Any): ...
+    def get_interface_and_endpoint(self, device: Any, endpoint_address: Any): ...
+    def get_active_configuration(self, device: Any): ...
+    def release_all_interfaces(self, device: Any) -> None: ...
+    def dispose(self, device: Any, close_handle: bool = ...) -> None: ...
+
+class USBError(IOError):
+    backend_error_code: Any = ...
+    def __init__(self, strerror: Any, error_code: Optional[Any] = ..., errno: Optional[Any] = ...) -> None: ...
+
+class NoBackendError(ValueError): ...
+
+class Endpoint:
+    device: Any = ...
+    index: Any = ...
+    def __init__(self, device: Any, endpoint: Any, interface: int = ..., alternate_setting: int = ..., configuration: int = ...) -> None: ...
+    def write(self, data: Any, timeout: Optional[Any] = ...): ...
+    def read(self, size_or_buffer: Any, timeout: Optional[Any] = ...): ...
+    def clear_halt(self) -> None: ...
+
+class Interface:
+    device: Any = ...
+    alternate_index: Any = ...
+    index: Any = ...
+    configuration: Any = ...
+    def __init__(self, device: Any, interface: int = ..., alternate_setting: int = ..., configuration: int = ...) -> None: ...
+    def endpoints(self): ...
+    def set_altsetting(self) -> None: ...
+    def __iter__(self) -> None: ...
+    def __getitem__(self, index: Any): ...
+
+class Configuration:
+    device: Any = ...
+    index: Any = ...
+    def __init__(self, device: Any, configuration: int = ...) -> None: ...
+    def interfaces(self): ...
+    def set(self) -> None: ...
+    def __iter__(self) -> None: ...
+    def __getitem__(self, index: Any): ...
+
+class Device:
+    def configurations(self): ...
+    bus: Any = ...
+    address: Any = ...
+    port_number: Any = ...
+    speed: Any = ...
+    def __init__(self, dev: Any, backend: Any) -> None: ...
+    @property
+    def langids(self): ...
+    @property
+    def serial_number(self): ...
+    @property
+    def product(self): ...
+    @property
+    def manufacturer(self): ...
+    @property
+    def backend(self): ...
+    def set_configuration(self, configuration: Optional[Any] = ...) -> None: ...
+    def get_active_configuration(self): ...
+    def set_interface_altsetting(self, interface: Optional[Any] = ..., alternate_setting: Optional[Any] = ...) -> None: ...
+    def clear_halt(self, ep: Any) -> None: ...
+    def reset(self) -> None: ...
+    def write(self, endpoint: Any, data: Any, timeout: Optional[Any] = ...): ...
+    def read(self, endpoint: Any, size_or_buffer: Any, timeout: Optional[Any] = ...): ...
+    def ctrl_transfer(self, bmRequestType: Any, bRequest: Any, wValue: int = ..., wIndex: int = ..., data_or_wLength: Optional[Any] = ..., timeout: Optional[Any] = ...): ...
+    def is_kernel_driver_active(self, interface: Any): ...
+    def detach_kernel_driver(self, interface: Any) -> None: ...
+    def attach_kernel_driver(self, interface: Any) -> None: ...
+    def __iter__(self) -> None: ...
+    def __getitem__(self, index: Any): ...
+    default_timeout: Any = ...
+
+def find(find_all: bool = ..., backend: Optional[Any] = ..., custom_match: Optional[Any] = ..., **args: Any): ...
+def show_devices(verbose: bool = ..., **kwargs: Any): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/libloader.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,15 @@
+# Stubs for usb.libloader (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any, Optional
+
+class LibraryException(OSError): ...
+class LibraryNotFoundException(LibraryException): ...
+class NoLibraryCandidatesException(LibraryNotFoundException): ...
+class LibraryNotLoadedException(LibraryException): ...
+class LibraryMissingSymbolsException(LibraryException): ...
+
+def locate_library(candidates: Any, find_library: Any = ...): ...
+def load_library(lib: Any, name: Optional[Any] = ..., lib_cls: Optional[Any] = ...): ...
+def load_locate_library(candidates: Any, cygwin_lib: Any, name: Any, win_cls: Optional[Any] = ..., cygwin_cls: Optional[Any] = ..., others_cls: Optional[Any] = ..., find_library: Optional[Any] = ..., check_symbols: Optional[Any] = ...): ...
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stubs/usb/util.pyi	Tue May 28 06:42:27 2019 +0000
@@ -0,0 +1,45 @@
+# Stubs for usb.util (Python 3)
+#
+# NOTE: This dynamically typed stub was automatically generated by stubgen.
+
+from typing import Any, Optional
+
+DESC_TYPE_DEVICE: int
+DESC_TYPE_CONFIG: int
+DESC_TYPE_STRING: int
+DESC_TYPE_INTERFACE: int
+DESC_TYPE_ENDPOINT: int
+ENDPOINT_IN: int
+ENDPOINT_OUT: int
+ENDPOINT_TYPE_CTRL: int
+ENDPOINT_TYPE_ISO: int
+ENDPOINT_TYPE_BULK: int
+ENDPOINT_TYPE_INTR: int
+CTRL_TYPE_STANDARD: Any
+CTRL_TYPE_CLASS: Any
+CTRL_TYPE_VENDOR: Any
+CTRL_TYPE_RESERVED: Any
+CTRL_RECIPIENT_DEVICE: int
+CTRL_RECIPIENT_INTERFACE: int
+CTRL_RECIPIENT_ENDPOINT: int
+CTRL_RECIPIENT_OTHER: int
+CTRL_OUT: int
+CTRL_IN: int
+SPEED_LOW: int
+SPEED_FULL: int
+SPEED_HIGH: int
+SPEED_SUPER: int
+SPEED_UNKNOWN: int
+
+def endpoint_address(address: Any): ...
+def endpoint_direction(address: Any): ...
+def endpoint_type(bmAttributes: Any): ...
+def ctrl_direction(bmRequestType: Any): ...
+def build_request_type(direction: Any, type: Any, recipient: Any): ...
+def create_buffer(length: Any): ...
+def find_descriptor(desc: Any, find_all: bool = ..., custom_match: Optional[Any] = ..., **args: Any): ...
+def claim_interface(device: Any, interface: Any) -> None: ...
+def release_interface(device: Any, interface: Any) -> None: ...
+def dispose_resources(device: Any) -> None: ...
+def get_langids(dev: Any): ...
+def get_string(dev: Any, index: Any, langid: Optional[Any] = ...): ...