Skip to content

Commit 9ec4d60

Browse files
committed
typing fixes
1 parent 52a8526 commit 9ec4d60

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "textual-serve"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Turn your Textual TUIs in to web applications"
55
authors = [
66
{ name = "Will McGugan", email = "[email protected]" }

src/textual_serve/app_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
from __future__ import annotations
2+
13
import asyncio
24
import io
35
import json
46
import os
5-
from typing import Awaitable, Callable, Literal, TypeAlias
7+
from typing import Awaitable, Callable, Literal
68
from asyncio.subprocess import Process
79
import logging
810

@@ -12,8 +14,6 @@
1214

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

15-
Meta: TypeAlias = "dict[str, str | None | int | bool]"
16-
1717

1818
@rich.repr.auto
1919
class AppService:
@@ -121,7 +121,7 @@ async def send_bytes(self, data: bytes) -> bool:
121121
return False
122122
return True
123123

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

0 commit comments

Comments
 (0)