[pre-commit.ci] pre-commit autoupdate (#4874)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2022-07-11 23:56:34 +05:30 committed by GitHub
parent 2042d78d0d
commit c8c1fd1071
Failed to generate hash of commit
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ repos:
- id: check-added-large-files
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v2.37.1
hooks:
- id: pyupgrade
args: [--py38-plus]

View file

@ -147,7 +147,7 @@ def _get_args_kwargs(annot: tp.Any) -> tp.Tuple[tp.Sequence[str], tp.Dict[str, t
if hasattr(annot, "__metadata__"):
args, kwargs = annot.__metadata__[0]
else:
from typing_extensions import get_args
from typing import get_args
_, (args, kwargs) = get_args(annot)