feat: Add Python 3.7 Support and Restore Compatibility with Older Syntax (#181)

* Add Python 3.9 support by using ParamSpec from typing_extensions and removing match statements

* Add Python 3.7 support by reverting inline generics and removing walrus usage

* Update pyproject.toml
This commit is contained in:
Filip Christiansen 2025-02-17 02:36:57 -08:00 committed by GitHub
parent 9be28a4eef
commit 4397a45281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 210 additions and 196 deletions

View file

@ -48,7 +48,7 @@ repos:
hooks:
- id: pyupgrade
description: "Automatically upgrade syntax for newer versions."
args: [--py3-plus, --py36-plus, --py38-plus, --py39-plus, --py310-plus]
args: [--py3-plus, --py36-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0