From 4899728c6f621c22c8d2986443e4fbda67867283 Mon Sep 17 00:00:00 2001 From: Chris Shucksmith Date: Fri, 8 May 2026 14:55:50 +0100 Subject: [PATCH 1/2] branch asyncio.Server type on sys.version_info --- aiokdb/server.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aiokdb/server.py b/aiokdb/server.py index 9fa8add..2b6a161 100644 --- a/aiokdb/server.py +++ b/aiokdb/server.py @@ -4,11 +4,17 @@ import logging import os import struct +import sys from functools import partial from typing import Any, Callable, List, Optional, Tuple from aiokdb import KException, KObj, MessageType, TypeEnum, b9, d9, krr, logger +if sys.version_info >= (3, 9): + AsyncioServer = asyncio.Server +else: + AsyncioServer = Any + class CredentialsException(Exception): pass @@ -321,7 +327,7 @@ async def handle_connection( pass -async def start_qserver(port: int, context: ServerContext) -> Any: +async def start_qserver(port: int, context: ServerContext) -> AsyncioServer: logging.info(f"opening KDB-q IPC server on port {port}") server = await asyncio.start_server(partial(handle_connection, context), "", port) await context.start_tasks() From ee07bb61c86e7d8e57afbe22443a48d8257b36d8 Mon Sep 17 00:00:00 2001 From: Chris Shucksmith Date: Fri, 8 May 2026 14:55:34 +0100 Subject: [PATCH 2/2] add missing Null for UUID type --- aiokdb/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiokdb/__init__.py b/aiokdb/__init__.py index 5b67e1c..67d1db6 100644 --- a/aiokdb/__init__.py +++ b/aiokdb/__init__.py @@ -66,6 +66,7 @@ class Nulls: c: str = " " e: float = float("nan") f: float = float("nan") + uu: uuid.UUID = uuid.UUID("00000000-0000-0000-0000-000000000000") class Infs: