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 28ce814c7da0..b64829f174b5 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 @@ -5,7 +5,9 @@ __version__: str class Point: class AngleUnit: - """Members: + """Describes the angle measurement units. + + Members: radian @@ -15,24 +17,32 @@ class Point: degree: ClassVar[Point.AngleUnit] = ... radian: ClassVar[Point.AngleUnit] = ... def __init__(self, value: int) -> None: - """__init__(self: pybind11_fixtures.demo.Point.AngleUnit, value: int) -> None""" + """__init__(self: pybind11_fixtures.demo.Point.AngleUnit, 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.AngleUnit) -> int""" + """__index__(self: pybind11_fixtures.demo.Point.AngleUnit) -> int + """ def __int__(self) -> int: - """__int__(self: pybind11_fixtures.demo.Point.AngleUnit) -> int""" + """__int__(self: pybind11_fixtures.demo.Point.AngleUnit) -> 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 def value(self) -> int: ... class LengthUnit: - """Members: + """Describes the length measurement units. + + Members: mm @@ -86,7 +96,8 @@ class Point: 2. __init__(self: pybind11_fixtures.demo.Point, x: float, y: float) -> None """ def as_list(self) -> list[float]: - """as_list(self: pybind11_fixtures.demo.Point) -> List[float]""" + """as_list(self: pybind11_fixtures.demo.Point) -> List[float] + """ @overload def distance_to(self, x: float, y: float) -> float: """distance_to(*args, **kwargs) @@ -114,11 +125,13 @@ def answer() -> int: answer docstring, with end quote" ''' def midpoint(left: float, right: float) -> float: - """midpoint(left: float, right: float) -> float""" + """midpoint(left: float, right: float) -> float + """ def sum(arg0: int, arg1: int) -> int: '''sum(arg0: int, arg1: int) -> int multiline docstring test, edge case quotes """\'\'\' ''' def weighted_midpoint(left: float, right: float, alpha: float = ...) -> float: - """weighted_midpoint(left: float, right: float, alpha: float = 0.5) -> float""" + """weighted_midpoint(left: float, right: float, alpha: float = 0.5) -> float + """