From 29c4b8a41643e81adbec946ad7963ed2194ad603 Mon Sep 17 00:00:00 2001 From: Joseph Capriotti Date: Sun, 18 Aug 2024 00:30:55 -0600 Subject: [PATCH] more test target updatse --- .../pybind11_fixtures/__init__.pyi | 15 ++++++++++----- .../pybind11_fixtures/demo.pyi | 18 ++++++++++++------ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/__init__.pyi b/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/__init__.pyi index db04bccab028..1f80e14eda80 100644 --- a/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/__init__.pyi +++ b/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/__init__.pyi @@ -41,12 +41,17 @@ class TestStruct: def field_readonly(self) -> int: ... def func_incomplete_signature(*args, **kwargs): - """func_incomplete_signature() -> dummy_sub_namespace::HasNoBinding""" + """func_incomplete_signature() -> dummy_sub_namespace::HasNoBinding + """ def func_returning_optional() -> int | None: - """func_returning_optional() -> Optional[int]""" + """func_returning_optional() -> Optional[int] + """ def func_returning_pair() -> tuple[int, float]: - """func_returning_pair() -> Tuple[int, float]""" + """func_returning_pair() -> Tuple[int, float] + """ def func_returning_path() -> os.PathLike: - """func_returning_path() -> os.PathLike""" + """func_returning_path() -> os.PathLike + """ def func_returning_vector() -> list[float]: - """func_returning_vector() -> List[float]""" + """func_returning_vector() -> List[float] + """ diff --git a/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/demo.pyi b/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/demo.pyi index b64829f174b5..47ea1e50b290 100644 --- a/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/demo.pyi +++ b/test-data/pybind11_fixtures/expected_stubs_with_docs/pybind11_fixtures/demo.pyi @@ -55,17 +55,23 @@ class Point: mm: ClassVar[Point.LengthUnit] = ... pixel: ClassVar[Point.LengthUnit] = ... def __init__(self, value: int) -> None: - """__init__(self: pybind11_fixtures.demo.Point.LengthUnit, value: int) -> None""" + """__init__(self: pybind11_fixtures.demo.Point.LengthUnit, value: int) -> None + """ def __eq__(self, other: object) -> bool: - """__eq__(self: object, other: object) -> bool""" + """__eq__(self: object, other: object) -> bool + """ def __hash__(self) -> int: - """__hash__(self: object) -> int""" + """__hash__(self: object) -> int + """ def __index__(self) -> int: - """__index__(self: pybind11_fixtures.demo.Point.LengthUnit) -> int""" + """__index__(self: pybind11_fixtures.demo.Point.LengthUnit) -> int + """ def __int__(self) -> int: - """__int__(self: pybind11_fixtures.demo.Point.LengthUnit) -> int""" + """__int__(self: pybind11_fixtures.demo.Point.LengthUnit) -> int + """ def __ne__(self, other: object) -> bool: - """__ne__(self: object, other: object) -> bool""" + """__ne__(self: object, other: object) -> bool + """ @property def name(self) -> str: ... @property