From 7c49720c3b17e4f03734811609ec5327b7d482b5 Mon Sep 17 00:00:00 2001 From: Damian Shaw Date: Sun, 15 Jun 2025 11:21:36 -0400 Subject: [PATCH] Update `typing-extensions` to be a dev only dependency --- poetry.lock | 2 +- pyproject.toml | 2 +- rich/progress.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index a089eccf..945d6b33 100644 --- a/poetry.lock +++ b/poetry.lock @@ -929,4 +929,4 @@ jupyter = ["ipywidgets"] [metadata] lock-version = "2.0" python-versions = ">=3.8.0" -content-hash = "804a37e7036779a41ab3dfe0cab6324de5095f81684e7db724ba803b26159b60" +content-hash = "2e87c73a127b5e6456de92c6cab8e8be8f746f2c4d792ae0563ae74e19593e4c" diff --git a/pyproject.toml b/pyproject.toml index 41ccb1fa..65c9623b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,6 @@ include = ["rich/py.typed"] [tool.poetry.dependencies] python = ">=3.8.0" -typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.11" } pygments = "^2.13.0" ipywidgets = { version = ">=7.5.1,<9", optional = true } markdown-it-py = ">=2.2.0" @@ -44,6 +43,7 @@ pytest-cov = "^3.0.0" attrs = "^21.4.0" pre-commit = "^2.17.0" asv = "^0.5.1" +typing-extensions = ">=4.0.0, <5.0" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/rich/progress.py b/rich/progress.py index fbfe19ba..b9eaecf2 100644 --- a/rich/progress.py +++ b/rich/progress.py @@ -25,6 +25,7 @@ from typing import ( Generic, Iterable, List, + Literal, NamedTuple, NewType, Optional, @@ -35,7 +36,6 @@ from typing import ( TypeVar, Union, ) -from typing import Literal if TYPE_CHECKING: # Can be replaced with `from typing import Self` in Python 3.11+