From f86aa30530924fb3ced4cf5ab72f40f13defc466 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 11:54:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/_pytest/assertion/rewrite.py | 1 - src/_pytest/python.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index 21bcaadb8..b29a254f5 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -18,7 +18,6 @@ import sys import tokenize import types from typing import Callable -from typing import DefaultDict from typing import Dict from typing import IO from typing import Iterable diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 7bdd093b7..f71e00e69 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1126,9 +1126,9 @@ def resolve_values_indices_in_parametersets( argname_value_indices_for_hashable_ones[argname][value] ) except KeyError: # New unique value - argname_value_indices_for_hashable_ones[argname][ - value - ] = argvalues_count[argname] + argname_value_indices_for_hashable_ones[argname][value] = ( + argvalues_count[argname] + ) argname_indices.append(argvalues_count[argname]) argvalues_count[argname] += 1 except TypeError: # `value` is not hashable