Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import asyncio
from twentemilieu import TwenteMilieu, WasteType


async def main():
async def main() -> None:
"""Show example on stats from Twente Milieu."""
async with TwenteMilieu(post_code="1234AB", house_number=1) as twente:
unique_id = await twente.unique_id()
Expand All @@ -50,8 +50,7 @@ async def main():


if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
asyncio.run(main())
```

## Changelog & Releases
Expand Down
5 changes: 2 additions & 3 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from twentemilieu import TwenteMilieu, WasteType


async def main():
async def main() -> None:
"""Show example on stats from Twente Milieu."""
async with TwenteMilieu(post_code="7545KR", house_number=175) as twente:
print(twente)
Expand All @@ -22,5 +22,4 @@ async def main():


if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
asyncio.run(main())
38 changes: 0 additions & 38 deletions mypi.ini

This file was deleted.

Loading