Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions aiokdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion aiokdb/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading