mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Correctly import Literal on Python 3.7
This commit is contained in:
@@ -11,7 +11,12 @@ from contextlib import suppress
|
||||
from datetime import datetime, timezone
|
||||
from json import JSONDecodeError
|
||||
from pathlib import Path
|
||||
from typing import cast, Iterable, Literal
|
||||
from typing import cast, Iterable
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from typing import Literal
|
||||
else:
|
||||
from typing_extensions import Literal
|
||||
|
||||
from aiohttp import WSMessage, WSMsgType, WSCloseCode
|
||||
from aiohttp.web import run_app
|
||||
|
||||
Reference in New Issue
Block a user