diff --git a/poetry.lock b/poetry.lock index 3f062ad..9998c50 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1187,14 +1187,14 @@ md = ["cmarkgfm (>=0.8.0)"] [[package]] name = "requests" -version = "2.30.0" +version = "2.31.0" description = "Python HTTP for Humans." category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "requests-2.30.0-py3-none-any.whl", hash = "sha256:10e94cc4f3121ee6da529d358cdaeaff2f1c409cd377dbc72b825852f2f7e294"}, - {file = "requests-2.30.0.tar.gz", hash = "sha256:239d7d4458afcb28a692cdd298d87542235f4ca8d36d03a15bfc128a6559a2f4"}, + {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, + {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, ] [package.dependencies] @@ -1421,14 +1421,14 @@ files = [ [[package]] name = "typing-extensions" -version = "4.5.0" +version = "4.6.0" description = "Backported and Experimental Type Hints for Python 3.7+" category = "main" optional = false python-versions = ">=3.7" files = [ - {file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"}, - {file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"}, + {file = "typing_extensions-4.6.0-py3-none-any.whl", hash = "sha256:6ad00b63f849b7dcc313b70b6b304ed67b2b2963b3098a33efe18056b1a9a223"}, + {file = "typing_extensions-4.6.0.tar.gz", hash = "sha256:ff6b238610c747e44c268aa4bb23c8c735d665a63726df3f9431ce707f2aa768"}, ] [[package]] @@ -1516,4 +1516,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = ">=3.8.1,<4.0" -content-hash = "203c73458b593a142c3d2be64d4f12ee5f60e602f1166d2a186459484076bf9a" +content-hash = "fb8c43cc8331cab4b156e5856a8149e46504e28ef57f0604fb0a153ee21cd185" diff --git a/pyproject.toml b/pyproject.toml index 2436401..18e1a02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/tryceratops/types.py b/src/tryceratops/types.py index e2228f2..5225870 100644 --- a/src/tryceratops/types.py +++ b/src/tryceratops/types.py @@ -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