mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Handle importing of Final for Python 3.7
See https://github.com/Textualize/textual/pull/963#pullrequestreview-1149139158
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
"""Simple version of 5x5, developed for/with Textual."""
|
"""Simple version of 5x5, developed for/with Textual."""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Final, cast
|
from typing import cast
|
||||||
|
import sys
|
||||||
|
|
||||||
|
if sys.version_info >= (3, 8):
|
||||||
|
from typing import Final
|
||||||
|
else:
|
||||||
|
from typing_extensions import Final
|
||||||
|
|
||||||
from textual.containers import Horizontal
|
from textual.containers import Horizontal
|
||||||
from textual.app import App, ComposeResult
|
from textual.app import App, ComposeResult
|
||||||
|
|||||||
Reference in New Issue
Block a user