mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +00:00
Pull in Annotated[list[int], FixedSize(2)]
from test_stl
This commit is contained in:
parent
781304e431
commit
61ee34ee07
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user