Skip to content

Commit

Permalink
remove type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 11, 2022
1 parent ef5bd78 commit c6982eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ include = ["rich/py.typed"]

[tool.poetry.dependencies]
python = "^3.6.3"
typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.10" }
typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.9" }
dataclasses = { version = ">=0.7,<0.9", python = "<3.7" }
pygments = "^2.6.0"
commonmark = "^0.9.0"
Expand Down
7 changes: 1 addition & 6 deletions rich/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
from .style import Style, StyleType
from .text import Text

if sys.version_info < (3, 10):
from typing_extensions import TypeAlias
else:
from typing import TypeAlias

TokenType = Tuple[str, ...]

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


SyntaxPosition: TypeAlias = Tuple[int, int]
SyntaxPosition = Tuple[int, int]


class _SyntaxHighlightRange(NamedTuple):
Expand Down

0 comments on commit c6982eb

Please sign in to comment.