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