Skip to content

Commit

Permalink
typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jun 19, 2024
1 parent 52a8526 commit 9ec4d60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "textual-serve"
version = "1.0.0"
version = "1.0.1"
description = "Turn your Textual TUIs in to web applications"
authors = [
{ name = "Will McGugan", email = "[email protected]" }
Expand Down
8 changes: 4 additions & 4 deletions src/textual_serve/app_service.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from __future__ import annotations

import asyncio
import io
import json
import os
from typing import Awaitable, Callable, Literal, TypeAlias
from typing import Awaitable, Callable, Literal
from asyncio.subprocess import Process
import logging

Expand All @@ -12,8 +14,6 @@

log = logging.getLogger("textual-serve")

Meta: TypeAlias = "dict[str, str | None | int | bool]"


@rich.repr.auto
class AppService:
Expand Down Expand Up @@ -121,7 +121,7 @@ async def send_bytes(self, data: bytes) -> bool:
return False
return True

async def send_meta(self, data: Meta) -> bool:
async def send_meta(self, data: dict[str, str | None | int | bool]) -> bool:
"""Send meta information to process.
Args:
Expand Down

0 comments on commit 9ec4d60

Please sign in to comment.