Skip to content

Commit

Permalink
fix: python <3.11 needs typing_extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
guilatrova committed May 23, 2023
1 parent 52f4930 commit bf8f4cc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
14 changes: 7 additions & 7 deletions 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 @@ -54,7 +54,7 @@ python = ">=3.8.1,<4.0"
click = ">=7"
toml = ">=0.10.2"
rich = ">=10.14.0"
typing-extensions = { version = ">=4.5.0", python = "<3.10" }
typing-extensions = { version = ">=4.5.0", python = "<3.11" }

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
Expand Down
7 changes: 6 additions & 1 deletion src/tryceratops/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import ast
import sys
import typing as t
import typing_extensions as te

if sys.version_info >= (3, 11):
import typing as te
else:
import typing_extensions as te

from tryceratops.settings import FileFilter

Expand Down

0 comments on commit bf8f4cc

Please sign in to comment.