mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Move exceptions to their own sub-module
This removes the circular dependency introduced in PR#137. This also fixes up an issue in the base meta-class which meant it wasn't working in Python 3 (only Python 2), and adds a bit to the meta-class to allow docstrings to be inherited (taken from the rest-docs branch).
This commit is contained in:
@@ -5,13 +5,16 @@ from __future__ import (
|
||||
division,
|
||||
)
|
||||
|
||||
from .devices import (
|
||||
from .exc import (
|
||||
GPIODeviceClosed,
|
||||
GPIODeviceError,
|
||||
InputDeviceError,
|
||||
OutputDeviceError,
|
||||
)
|
||||
from .devices import (
|
||||
GPIODevice,
|
||||
)
|
||||
from .input_devices import (
|
||||
InputDeviceError,
|
||||
InputDevice,
|
||||
Button,
|
||||
LineSensor,
|
||||
@@ -22,7 +25,6 @@ from .input_devices import (
|
||||
MCP3004,
|
||||
)
|
||||
from .output_devices import (
|
||||
OutputDeviceError,
|
||||
OutputDevice,
|
||||
PWMOutputDevice,
|
||||
PWMLED,
|
||||
|
||||
Reference in New Issue
Block a user