Skip to content

Commit

Permalink
CI: Fix linting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Aug 3, 2023
1 parent 5bc85c0 commit b744f78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micropython/examples/common/lib/tinyweb/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
gc.collect()
await resp.send('0\r\n\r\n')
else:
if type(res) == tuple:
if type(res) is tuple:
resp.code = res[1]
res = res[0]
elif res is None:
Expand Down
1 change: 1 addition & 0 deletions micropython/examples/cosmic_unicorn/light_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# Rate of display change i.e the lower the value the slower the transition
TRANSITION_RATE = 1.0 / 72.0


# perform linear interpolation to map a range of values to discrete
def map_range(
x,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
gc.collect()
await resp.send('0\r\n\r\n')
else:
if type(res) == tuple:
if type(res) is tuple:
resp.code = res[1]
res = res[0]
elif res is None:
Expand Down

0 comments on commit b744f78

Please sign in to comment.