1
0
mirror of https://github.com/ijaric/voice_assistant.git synced 2025-05-24 14:33:26 +00:00

chore: updated pyproject & deleted httpx client

This commit is contained in:
Artem Litvinov 2023-10-02 20:09:09 +01:00
parent 8722d79ee0
commit 721651e2e2
2 changed files with 2 additions and 16 deletions

View File

@ -1,16 +0,0 @@
import contextlib
import typing
import httpx
@contextlib.asynccontextmanager
async def get_async_http_session(
settings: dict[str, typing.Any] | None = None
) -> typing.AsyncGenerator[httpx.AsyncClient, None]:
"""Async http client."""
if settings is None:
settings = {}
client = httpx.AsyncClient(**settings) # Insert your own settings here
async with client as ac:
yield ac

View File

@ -129,6 +129,8 @@ ignore = [
"D415",
# Type-checkers interpret redundant `as` as exporting an item
"PLC0414",
# Permit using alias for 'import'
"PLR0402",
# Causes churn and awful looking import blocks for little gain
"TCH"
]