Skip to content

Commit af6b3b5

Browse files
committed
Remove use of mocks for sphinx. Blinka should be enough.
1 parent 47d8757 commit af6b3b5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

adafruit_ble_apple_media.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
import struct
3333
import time
3434

35+
import _bleio
36+
3537
from adafruit_ble.attributes import Attribute
3638
from adafruit_ble.characteristics import Characteristic, ComplexCharacteristic
3739
from adafruit_ble.uuid import VendorUUID
3840
from adafruit_ble.services import Service
3941

40-
import _bleio
41-
4242
__version__ = "0.0.0-auto.0"
4343
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BLE_Apple_Media.git"
4444

@@ -207,7 +207,7 @@ def __init__(self, **kwargs):
207207
def _send_command(self, command_id):
208208
if not self._command_buffer:
209209
self._command_buffer = bytearray(13)
210-
i = self._remote_command.readinto(self._command_buffer)
210+
i = self._remote_command.readinto(self._command_buffer) # pylint: disable=no-member
211211
if i > 0:
212212
self._supported_commands = list(self._command_buffer[:i])
213213
if command_id not in self._supported_commands:
@@ -217,7 +217,7 @@ def _send_command(self, command_id):
217217
if not self._cmd:
218218
self._cmd = bytearray(1)
219219
self._cmd[0] = command_id
220-
self._remote_command.write(self._cmd)
220+
self._remote_command.write(self._cmd) # pylint: disable=no-member
221221

222222
def play(self):
223223
"""Plays the current track. Does nothing if already playing."""

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
sys.path.insert(0, os.path.abspath('..'))
66

7-
87
# -- General configuration ------------------------------------------------
98

109
# Add any Sphinx extension module names here, as strings. They can be
@@ -17,10 +16,10 @@
1716
'sphinx.ext.todo',
1817
]
1918

20-
# TODO: Please Read!
2119
# Uncomment the below if you use native CircuitPython modules such as
2220
# digitalio, micropython and busio. List the modules you use. Without it, the
2321
# autodoc module docs will fail to generate with a warning.
22+
# autodoc_mock_imports = []
2423

2524

2625
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}

0 commit comments

Comments
 (0)