From 0107d1eee8909792ee49595ecbfc3e388f669f42 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 13 Feb 2022 21:51:59 +0300 Subject: [PATCH 1/4] Fix `name '_UnpackAlias' is not defined` --- typing_extensions/src/typing_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typing_extensions/src/typing_extensions.py b/typing_extensions/src/typing_extensions.py index 144bca76e..0cd3dcd35 100644 --- a/typing_extensions/src/typing_extensions.py +++ b/typing_extensions/src/typing_extensions.py @@ -140,7 +140,7 @@ def _collect_type_vars(types, typevar_types=None): if ( isinstance(t, typevar_types) and t not in tvars and - not isinstance(t, _UnpackAlias) + not _is_unpack(t) ): tvars.append(t) if _should_collect_from_parameters(t): From 73188565f42368f8448caaa5263a083e2c71e782 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 13 Feb 2022 16:37:10 -0800 Subject: [PATCH 2/4] Test on 3.7.0 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a89af4d5..61c9652ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11-dev"] + python-version: ["3.6", "3.7.0", "3.7", "3.8", "3.9", "3.10", "3.11-dev"] runs-on: ubuntu-latest From b6876a9299f5e1a772e72b9e4445ddd3685037c1 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 13 Feb 2022 16:39:21 -0800 Subject: [PATCH 3/4] Update .github/workflows/ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61c9652ac..315d9ba9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7.0", "3.7", "3.8", "3.9", "3.10", "3.11-dev"] + python-version: ["3.6", "3.7.1", "3.7", "3.8", "3.9", "3.10", "3.11-dev"] runs-on: ubuntu-latest From 7edb5496da1b4f53c6d6c68b9eadd1eec48d65cf Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 13 Feb 2022 16:40:38 -0800 Subject: [PATCH 4/4] Add CHANGELOOG --- typing_extensions/CHANGELOG | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/typing_extensions/CHANGELOG b/typing_extensions/CHANGELOG index 831f6d826..4a64aba02 100644 --- a/typing_extensions/CHANGELOG +++ b/typing_extensions/CHANGELOG @@ -1,3 +1,8 @@ +# Unreleased + +- Fix importing `typing_extensions` on Python 3.7.0 and 3.7.1. Patch by + Nikita Sobolev (@sobolevn). + # Release 4.1.0 (February 12, 2022) - Runtime support for PEP 646, adding `typing_extensions.TypeVarTuple`