adafruit / Adafruit_CircuitPython_BLE_Adafruit

Support for the BLE Adafruit Service, which provides access to on-board sensors and components
MIT License
9 stars 6 forks source link

Sphinx Fixes #3

Closed sommersoft closed 4 years ago

sommersoft commented 4 years ago

@dhalbert these changes get Sphinx past the api.rst title error, but then fails on a TypeError for struct.pack using constants set with a const(<int>). Auto mocking struct doesn't resolve the the TypeError, and casting to an integer doesn't either (raises a different one on int, actually)...

A quick grep showed that struct as the only usage of the affected constants, but they seem like they could be used in the future. Otherwise, you could just hardcode the integer or un-const them...

dhalbert commented 4 years ago

Thanks! I didn't see this until later, and ended up doing a lot of the same kinds of things with some other commits.. It passes now. This was totally painful.