diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 620295c..56ef4c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.14 + rev: v0.2.2 hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.2.0 hooks: - id: black language_version: python3.11 @@ -18,6 +18,6 @@ repos: - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v3.1.0 hooks: - id: prettier diff --git a/pyproject.toml b/pyproject.toml index 91e24e4..92cf302 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ dependencies = [ "fastapi", "sse-starlette", - "typing-extensions", + "typing-extensions>=4.5.0", "uvicorn", "httpx", "httpx-sse", diff --git a/src/fastapi_poe/client.py b/src/fastapi_poe/client.py index 65375bc..885c4d2 100644 --- a/src/fastapi_poe/client.py +++ b/src/fastapi_poe/client.py @@ -4,6 +4,7 @@ For more details, see: https://developer.poe.com/server-bots/accessing-other-bots-on-poe """ + import asyncio import contextlib import json