From f58951f20ec408d729935b1457f794564ee16cb7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:39:46 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_inference.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/test_inference.py b/tests/test_inference.py index 0f28a55739..acc8a2b1f8 100644 --- a/tests/test_inference.py +++ b/tests/test_inference.py @@ -19,6 +19,7 @@ import pytest from astroid import ( + Assign, Const, Slice, Uninferable, @@ -27,7 +28,7 @@ nodes, objects, test_utils, - util, Assign, + util, ) from astroid import decorators as decoratorsmod from astroid.arguments import CallSite @@ -7393,7 +7394,8 @@ def test_empty_format_spec() -> None: @pytest.mark.parametrize( "source, expected", [ - (""" + ( + """ class Cls: # pylint: disable=too-few-public-methods pass @@ -7401,9 +7403,11 @@ class Cls: c_obj = Cls() s1 = f'{c_obj!r}' #@ -""", '<__main__.Cls'), - ("s1 = f'{5}' #@", "5") - ] +""", + "<__main__.Cls", + ), + ("s1 = f'{5}' #@", "5"), + ], ) def test_joined_str_returns_string(source, expected) -> None: """Regression test for https://github.com/pylint-dev/pylint/issues/9947.""" @@ -7415,4 +7419,3 @@ def test_joined_str_returns_string(source, expected) -> None: assert len(inferred) == 1 assert isinstance(inferred[0], Const) inferred[0].value.startswith(expected) -