Skip to content

Commit

Permalink
export type information
Browse files Browse the repository at this point in the history
  • Loading branch information
marengaz committed May 3, 2021
1 parent 45536e2 commit 1b9c6a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python_rako/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from __future__ import annotations

import logging
from contextlib import asynccontextmanager
from typing import Any, AsyncIterator, Dict, List
from typing import AsyncIterator, Dict, List

import asyncio_dgram
from asyncio_dgram.aio import DatagramClient, DatagramServer
Expand Down Expand Up @@ -52,7 +54,9 @@ async def get_dg_commander(host: str, port: int) -> AsyncIterator[DatagramClient
client.close()


def deserialise_byte_list(byte_list: List[int]) -> Any:
def deserialise_byte_list(
byte_list: List[int],
) -> UnsupportedMessage | EOFResponse | StatusMessage | SceneCache | LevelCache:
try:
message_type = MessageType(byte_list[0])
except ValueError:
Expand Down
Empty file added python_rako/py.typed
Empty file.

0 comments on commit 1b9c6a3

Please sign in to comment.