Skip to content

Commit 3639b46

Browse files
authored
Merge pull request #810 from pimoroni/patch-linting
CI: Fix linting issues.
2 parents 5bc85c0 + b744f78 commit 3639b46

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

micropython/examples/common/lib/tinyweb/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
331331
gc.collect()
332332
await resp.send('0\r\n\r\n')
333333
else:
334-
if type(res) == tuple:
334+
if type(res) is tuple:
335335
resp.code = res[1]
336336
res = res[0]
337337
elif res is None:

micropython/examples/cosmic_unicorn/light_sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
# Rate of display change i.e the lower the value the slower the transition
3737
TRANSITION_RATE = 1.0 / 72.0
3838

39+
3940
# perform linear interpolation to map a range of values to discrete
4041
def map_range(
4142
x,

micropython/examples/inky_frame/inkylauncher/lib/tinyweb/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
331331
gc.collect()
332332
await resp.send('0\r\n\r\n')
333333
else:
334-
if type(res) == tuple:
334+
if type(res) is tuple:
335335
resp.code = res[1]
336336
res = res[0]
337337
elif res is None:

0 commit comments

Comments
 (0)