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:
parent
8722d79ee0
commit
721651e2e2
|
@ -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
|
|
@ -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"
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user