Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into support_staticmethod
  • Loading branch information
Marcel Weiler committed Dec 4, 2023
commit e33685cc2f2f09643a2d3e171e0838748d493d37
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import ClassVar, overload
from typing import ClassVar, List, overload

PI: float
__version__: str
Expand Down Expand Up @@ -100,6 +100,8 @@ class Point:

2. __init__(self: pybind11_mypy_demo.basics.Point, x: float, y: float) -> None
"""
def as_list(self) -> List[float]:
"""as_list(self: pybind11_mypy_demo.basics.Point) -> List[float]"""
@overload
def distance_to(self, x: float, y: float) -> float:
"""distance_to(*args, **kwargs)
Expand All @@ -124,11 +126,12 @@ class Point:
def answer() -> int:
"""answer() -> int"""

answer docstring, with end quote"
'''
def 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"""
You are viewing a condensed version of this merge commit. You can view the full changes here.