Skip to content

Commit c6982eb

Browse files
committed
remove type alias
1 parent ef5bd78 commit c6982eb

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include = ["rich/py.typed"]
2727

2828
[tool.poetry.dependencies]
2929
python = "^3.6.3"
30-
typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.10" }
30+
typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.9" }
3131
dataclasses = { version = ">=0.7,<0.9", python = "<3.7" }
3232
pygments = "^2.6.0"
3333
commonmark = "^0.9.0"

rich/syntax.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@
4848
from .style import Style, StyleType
4949
from .text import Text
5050

51-
if sys.version_info < (3, 10):
52-
from typing_extensions import TypeAlias
53-
else:
54-
from typing import TypeAlias
55-
5651
TokenType = Tuple[str, ...]
5752

5853
WINDOWS = platform.system() == "Windows"
@@ -212,7 +207,7 @@ def get_background_style(self) -> Style:
212207
return self._background_style
213208

214209

215-
SyntaxPosition: TypeAlias = Tuple[int, int]
210+
SyntaxPosition = Tuple[int, int]
216211

217212

218213
class _SyntaxHighlightRange(NamedTuple):

0 commit comments

Comments
 (0)