From 2774a8dfb169a9af4a30f599558d7c5179301f59 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:24:07 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_pytypes.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_pytypes.py b/tests/test_pytypes.py index 3f93d56c2b..448bfa6a83 100644 --- a/tests/test_pytypes.py +++ b/tests/test_pytypes.py @@ -1120,19 +1120,24 @@ def test_module_attribute_types() -> None: assert module_annotations["list_int"] == "list[int]" assert module_annotations["set_str"] == "set[str]" + @pytest.mark.skipif( not m.defined___cpp_inline_variables, reason="C++17 feature __cpp_inline_variables not available.", ) -@pytest.mark.skipif(sys.version_info < (3, 10), - reason="get_annotations function does not exist until Python3.10") +@pytest.mark.skipif( + sys.version_info < (3, 10), + reason="get_annotations function does not exist until Python3.10", +) def test_get_annotations_compliance() -> None: from inspect import get_annotations + module_annotations = get_annotations(m) assert module_annotations["list_int"] == "list[int]" assert module_annotations["set_str"] == "set[str]" + @pytest.mark.skipif( not m.defined___cpp_inline_variables, reason="C++17 feature __cpp_inline_variables not available.",