Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Fix uvloop deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 14, 2023
1 parent 7ec98b6 commit bc6e93a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nitro_generator_checker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def set_event_loop_policy() -> None:
except ImportError:
pass
else:
uvloop.install() # type: ignore[attr-defined]
asyncio.set_event_loop_policy(
uvloop.EventLoopPolicy() # type: ignore[attr-defined]
)


def configure_logging(console: Console) -> None:
Expand Down

0 comments on commit bc6e93a

Please sign in to comment.