From 7ae84bc896667c834257666b48e87d30ac208a5c Mon Sep 17 00:00:00 2001 From: RogerHaase Date: Mon, 24 Jul 2023 10:06:56 -0700 Subject: [PATCH 1/2] swapping python versions in ci.yml should produce TypeError; #1479 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6305723c..cbdd2ff06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.9 - name: Lint with flake8 run: | pip install flake8 @@ -39,7 +39,7 @@ jobs: matrix: include: - os: macos-latest - python-version: '3.9' + python-version: '3.8' toxenv: py38-fuse2 - os: windows-latest python-version: '3.11' From 24cd1931d5ed054c2304aa1f1ce57d7217f67c7d Mon Sep 17 00:00:00 2001 From: RogerHaase Date: Mon, 24 Jul 2023 13:17:17 -0700 Subject: [PATCH 2/2] TypeError: type object is not subscriptable on Python3.8 fixes #1479 --- src/moin/cli/maint/modify_item.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/moin/cli/maint/modify_item.py b/src/moin/cli/maint/modify_item.py index bc2f7d8f3..a271a4fb2 100644 --- a/src/moin/cli/maint/modify_item.py +++ b/src/moin/cli/maint/modify_item.py @@ -7,6 +7,9 @@ MoinMoin CLI - get an item revision from the wiki, put it back into the wiki. """ +# see #1479, remove after dropping support for Python 3.8 +from __future__ import annotations + from collections import defaultdict from dataclasses import dataclass, field import json