Skip to content

Commit

Permalink
Update asyncio_simpletest.py
Browse files Browse the repository at this point in the history
attempting to clear black.
  • Loading branch information
SquirtleSquadLeader authored Nov 28, 2023
1 parent 33949c6 commit 0475c86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/asyncio_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

async def function_1():
print('Execturing function_1')
await asyncio.core.sleep(0)
await asyncio.sleep(0)

async def function_2(led):
print('Execturing function_2')
await asyncio.core.sleep(0)
await asyncio.sleep(0)

Check failure on line 21 in examples/asyncio_simpletest.py

View workflow job for this annotation

GitHub Actions / test

Unused argument 'led'

async def main():

Expand All @@ -34,12 +34,12 @@ async def main():

if ticks_diff(ticks_ms(), start_function_1 ) > delay_1:
start_function_1 = ticks_ms()
asyncio.core.create_task(function_1())
asyncio.create_task(function_1())

if ticks_diff(ticks_ms(), start_function_2) > delay_2:
start_function_2 = ticks_ms()
asyncio.core.create_task(function_2())
asyncio.create_task(function_2())

Check failure on line 42 in examples/asyncio_simpletest.py

View workflow job for this annotation

GitHub Actions / test

No value for argument 'led' in function call
await asyncio.core.sleep(0)
await asyncio.sleep(0)

asyncio.core.run(main(led))
asyncio.run(main(led))

0 comments on commit 0475c86

Please sign in to comment.