Skip to content

Commit d728a1b

Browse files
authored
Merge pull request adafruit#25 from adafruit/patch-fix
Linted
2 parents beaa2a7 + e26a580 commit d728a1b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

examples/rotaryencoder.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
# This example is adapted in part from micropython:
66
# https://github.com/micropython/micropython/pull/6894/files
77

8-
import adafruit_pioasm
9-
import board
10-
import rp2pio
118
import array
12-
import digitalio
9+
import rp2pio
10+
import board
11+
import adafruit_pioasm
1312

1413

1514
class IncrementalEncoder:
@@ -111,7 +110,7 @@ def value(self):
111110

112111
old_value = None
113112
while True:
114-
gen()
113+
gen() # pylint: disable=undefined-variable
115114

116115
value = encoder.value
117116
if old_value != value:

examples/rxuart.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def baudrate(self):
4343
return self.pio.frequency // 8
4444

4545
@baudrate.setter
46-
def baudrate(self, frequency):
47-
self.pio.frequency = freqency * 8
46+
def baudrate(self, frequency): # pylint: disable=unused-argument
47+
self.pio.frequency = freqency * 8 # pylint: disable=undefined-variable
4848

4949
@property
5050
def in_waiting(self):
@@ -55,5 +55,5 @@ def read(self, n):
5555
n = self.pio.readinto(b)
5656
return b[:n]
5757

58-
def readinto(self, buf):
59-
return self.pio.readinto(n)
58+
def readinto(self, buf): # pylint: disable=unused-argument
59+
return self.pio.readinto(n) # pylint: disable=undefined-variable

0 commit comments

Comments
 (0)