Skip to content

Commit

Permalink
update test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Aug 18, 2024
1 parent 21baed9 commit eb09d89
Showing 1 changed file with 24 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ __version__: str

class Point:
class AngleUnit:
"""Members:
"""Describes the angle measurement units.
Members:
radian
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
"""

0 comments on commit eb09d89

Please sign in to comment.