adafruit / Adafruit_CircuitPython_BME280

CircuitPython driver for the BME280
MIT License
63 stars 42 forks source link

Switch import style. #57

Closed kattni closed 2 years ago

KeithTheEE commented 2 years ago

Did black reformat that to multiple lines, or can it be all in one line:

from adafruit_bus_device import i2c_device # pylint: disable=import-outside-toplevel

kattni commented 2 years ago

@KeithTheEE I tried that, and it fails hard on both Black and Pylint. Black turns it back into what you see here, and once I move the # pylint: disable= back to where it is now, it makes Pylint happy. I wanted to do it the shorter way, but I guess that's not right.

KeithTheEE commented 2 years ago

Awesome--it was worth checking. Looks good to me!