From 240310a395a11227f452d9772c69c576daa6da2b Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 15 Feb 2025 06:03:19 -0600 Subject: [PATCH 1/2] py(deps[testing,lint]) Add `typing-extensions` for older python versions --- pyproject.toml | 3 +++ uv.lock | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1a03c8737..c14e022e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ dev-dependencies = [ "myst-parser", "linkify-it-py", # Testing + "typing-extensions; python_version < '3.11'", "gp-libs", "pytest", "pytest-rerunfailures", @@ -94,6 +95,7 @@ docs = [ "linkify-it-py", ] testing = [ + "typing-extensions; python_version < '3.11'", "gp-libs", "pytest", "pytest-rerunfailures", @@ -106,6 +108,7 @@ coverage =[ "pytest-cov", ] lint = [ + "typing-extensions; python_version < '3.11'", "ruff", "mypy", ] diff --git a/uv.lock b/uv.lock index 94c09b18c..f6882ef6f 100644 --- a/uv.lock +++ b/uv.lock @@ -412,6 +412,7 @@ dev = [ { name = "sphinx-inline-tabs" }, { name = "sphinxext-opengraph" }, { name = "sphinxext-rediraffe" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] docs = [ { name = "furo" }, @@ -432,6 +433,7 @@ docs = [ lint = [ { name = "mypy" }, { name = "ruff" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] testing = [ { name = "gp-libs" }, @@ -439,6 +441,7 @@ testing = [ { name = "pytest-mock" }, { name = "pytest-rerunfailures" }, { name = "pytest-watcher" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] [package.metadata] @@ -471,6 +474,7 @@ dev = [ { name = "sphinx-inline-tabs" }, { name = "sphinxext-opengraph" }, { name = "sphinxext-rediraffe" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] docs = [ { name = "furo" }, @@ -488,6 +492,7 @@ docs = [ lint = [ { name = "mypy" }, { name = "ruff" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] testing = [ { name = "gp-libs" }, @@ -495,6 +500,7 @@ testing = [ { name = "pytest-mock" }, { name = "pytest-rerunfailures" }, { name = "pytest-watcher" }, + { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] [[package]] From 04785aafc2ab2b5d62b9c0156bc38c902f452b4c Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 15 Feb 2025 06:07:24 -0600 Subject: [PATCH 2/2] docs(CHANGES) Note update from #564 --- CHANGES | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 277cc2457..af519121a 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,11 @@ $ pip install --user --upgrade --pre libtmux - tests: Import `Self` in a `TYPE_CHECKING` guard to prevent dependency issues. Via #562, Thank you @ppentchev! +### Development + +- dev dependencies: Include `typing-extensions` for Python version < 3.11 via + the `testing` and `lint` groups, via #564. + ## libtmux 0.42.0 (2025-02-02) ### Bug fixes