From 6d5b040ac588ae3eb1ffb3a4e7b382866cc56e78 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 11 Oct 2024 20:03:47 -0400 Subject: [PATCH] py39+ Committed via https://github.com/asottile/all-repos --- .pre-commit-config.yaml | 4 ++-- bin/install-python | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e2b0d6..99c2e52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: rev: v3.13.0 hooks: - id: reorder-python-imports - args: [--py38-plus, --add-import, 'from __future__ import annotations'] + args: [--py39-plus, --add-import, 'from __future__ import annotations'] - repo: https://github.com/asottile/add-trailing-comma rev: v3.1.0 hooks: @@ -22,7 +22,7 @@ repos: rev: v3.17.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/hhatto/autopep8 rev: v2.3.1 hooks: diff --git a/bin/install-python b/bin/install-python index cd0a372..1b9f7a4 100755 --- a/bin/install-python +++ b/bin/install-python @@ -6,7 +6,7 @@ import contextlib import os.path import shlex import subprocess -from typing import Generator +from collections.abc import Generator from typing import NamedTuple