From fe46f1c908bf1d8d20cd8227274bf533f43a6a40 Mon Sep 17 00:00:00 2001 From: Anshgrover23 Date: Sun, 18 Jan 2026 17:11:03 +0530 Subject: [PATCH] chore: update Python version support in configuration files --- .github/workflows/ci.yml | 2 +- cortex/parallel_llm.py | 2 +- pyproject.toml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9a10a9f..2e4dd54e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout diff --git a/cortex/parallel_llm.py b/cortex/parallel_llm.py index 9a07f515..f217c548 100644 --- a/cortex/parallel_llm.py +++ b/cortex/parallel_llm.py @@ -150,7 +150,7 @@ async def _execute_single(self, query: ParallelQuery, attempt: int = 0) -> Paral async with self._semaphore: # Run sync router.complete in thread pool - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() response = await loop.run_in_executor( None, lambda: self.router.complete( diff --git a/pyproject.toml b/pyproject.toml index bde49c68..e9ad9151 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: POSIX :: Linux", "Typing :: Typed", ] @@ -107,7 +108,7 @@ cortex = ["py.typed"] [tool.black] line-length = 100 -target-version = ["py310", "py311", "py312"] +target-version = ["py310", "py311", "py312", "py313"] exclude = ''' /( \.eggs