textual-markdown icon indicating copy to clipboard operation
textual-markdown copied to clipboard

cannot import name 'TypeAlias' from 'typing'

Open Israr opened this issue 2 years ago • 0 comments

Tried both Mac OS and Ubuntu with python 3.9, and got following error.

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textual_markdown/__main__.py", line 3, in <module> from .browser_app import BrowserApp File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textual_markdown/browser_app.py", line 10, in <module> from .widgets import MarkdownBrowser File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/textual_markdown/widgets.py", line 4, in <module> from typing import Iterable, TypeAlias ImportError: cannot import name 'TypeAlias' from 'typing' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/typing.py)

Israr avatar Dec 19 '22 16:12 Israr