From 61ee34ee07400d1e7b2d749cd61f0ac7e1914024 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 14 Nov 2023 13:23:11 -0800 Subject: [PATCH] Pull in `Annotated[list[int], FixedSize(2)]` from test_stl --- tests/test_cases_for_stubgen.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_cases_for_stubgen.py b/tests/test_cases_for_stubgen.py index b1e0c552e..8ca2acead 100644 --- a/tests/test_cases_for_stubgen.py +++ b/tests/test_cases_for_stubgen.py @@ -1,6 +1,7 @@ import pytest from pybind11_tests import cases_for_stubgen as m +from pybind11_tests import stl as test_stl @pytest.mark.parametrize( @@ -62,6 +63,14 @@ from pybind11_tests import cases_for_stubgen as m m.MapUserTypeFloat.__iter__.__doc__, '__iter__(self: pybind11_tests.cases_for_stubgen.MapUserTypeFloat) -> Iterator[tuple[Annotated[Any, "test_cases_for_stubgen::user_type"], float]]\n', ), + ( + test_stl.cast_array.__doc__, + "cast_array() -> Annotated[list[int], FixedSize(2)]\n", + ), + ( + test_stl.load_array.__doc__, + "load_array(arg0: Annotated[list[int], FixedSize(2)]) -> bool\n", + ), ], ) def test_docstring(docstring, expected):