Skip to content

Commit

Permalink
typing/linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed May 15, 2023
1 parent 3276b2f commit adfac7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ test:
poetry run pytest --cov questionary -v

types:
poetry run mypy --version
poetry run mypy questionary

docs:
Expand Down
6 changes: 2 additions & 4 deletions questionary/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ async def activate_prompt_toolkit_async_mode() -> None:

if not is_prompt_toolkit_3():
# Tell prompt_toolkit to use asyncio for the event loop.
from prompt_toolkit.eventloop import (
use_asyncio_event_loop, # type: ignore[attr-defined]
)
import prompt_toolkit as pt

use_asyncio_event_loop()
pt.eventloop.use_asyncio_event_loop() # type: ignore[attr-defined]

ACTIVATED_ASYNC_MODE = True

0 comments on commit adfac7f

Please sign in to comment.