pylint ignore statement effect in __init__()

This commit is contained in:
FoamyGuy 2020-02-29 12:37:06 -06:00
parent 474f246508
commit 0c287cd375

View file

@ -185,6 +185,7 @@ class BusyError(Exception):
class PN532:
"""PN532 driver base, must be extended for I2C/SPI/UART interfacing"""
# noinspection PyStatementEffect
def __init__(self, *, debug=False, reset=None):
"""Create an instance of the PN532 class
"""
@ -196,7 +197,7 @@ class PN532:
try:
self._wakeup()
self.firmware_version # first time often fails, try 2ce
self.firmware_version # first time often fails, try 2ce
return
except (BusyError, RuntimeError):
pass