Skip to content

Commit adfc67b

Browse files
authored
Merge pull request #51 from adafruit/patch-fix
Linted
2 parents 379ffdb + a971bbc commit adfc67b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
name: pylint (library code)
2525
types: [python]
2626
args:
27-
- --disable=consider-using-f-string
27+
- --disable=consider-using-f-string,duplicate-code
2828
exclude: "^(docs/|examples/|tests/|setup.py$)"
2929
- id: pylint
3030
name: pylint (example code)

adafruit_pn532/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git"
1919

2020
import time
21-
import adafruit_bus_device.i2c_device as i2c_device
21+
from adafruit_bus_device import i2c_device
2222
from digitalio import Direction
2323
from micropython import const
2424
from adafruit_pn532.adafruit_pn532 import PN532, BusyError

adafruit_pn532/spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PN532.git"
1919

2020
import time
21-
import adafruit_bus_device.spi_device as spi_device
21+
from adafruit_bus_device import spi_device
2222
from micropython import const
2323
from adafruit_pn532.adafruit_pn532 import PN532
2424

0 commit comments

Comments
 (0)