Skip to content

Commit

Permalink
zauberzeug#338 remove Literal type to avoid problem with Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Feb 7, 2023
1 parent 0432f39 commit 9cc45d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nicegui/outbox.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import asyncio
from collections import deque
from typing import TYPE_CHECKING, Any, Deque, Literal, Tuple
from typing import TYPE_CHECKING, Any, Deque, Tuple

from . import globals

if TYPE_CHECKING:
from .element import Element
ClientId = int
MessageType = Literal['update', 'run_method', 'run_javascript', 'open', 'notify']
MessageType = str
MessageGroup = Tuple[ClientId, MessageType, Any]

queue: Deque['MessageGroup'] = deque()
Expand Down

0 comments on commit 9cc45d9

Please sign in to comment.