From 8f5df549cb5dcce2917a9f22b47520954882e78f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:01:25 +0000 Subject: [PATCH 1/2] ci: pre-commit auto-update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.3) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4fb83a0..21fefbb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.4 + rev: v0.8.3 hooks: - id: ruff - id: ruff-format From 7948fc2b0e1e9cdb6444be1d931e7f5a92ac26aa Mon Sep 17 00:00:00 2001 From: "Jason M. Gates" Date: Tue, 17 Dec 2024 10:44:08 -0700 Subject: [PATCH 2/2] fix: Switch import location In Python 3.9, `typing.Sequence` was deprecated in favor of `collections.abc.Sequence` (see PEP 585). --- reverse_argparse/reverse_argparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse_argparse/reverse_argparse.py b/reverse_argparse/reverse_argparse.py index f4530b8..c2af846 100644 --- a/reverse_argparse/reverse_argparse.py +++ b/reverse_argparse/reverse_argparse.py @@ -15,7 +15,7 @@ import re from argparse import SUPPRESS, Action, ArgumentParser, Namespace -from typing import Sequence +from collections.abc import Sequence SHORT_OPTION_LENGTH = 2