From f15db8950e5013f8cc98531e9d282ad6942307f9 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Fri, 28 Aug 2020 08:39:24 -0700 Subject: [PATCH] Added missing "math.comb" function, introduced in Python 3.8. (#4489) --- stdlib/2and3/math.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/2and3/math.pyi b/stdlib/2and3/math.pyi index 6af9f93ff..1f63088f1 100644 --- a/stdlib/2and3/math.pyi +++ b/stdlib/2and3/math.pyi @@ -26,6 +26,9 @@ if sys.version_info >= (3,): else: def ceil(__x: SupportsFloat) -> float: ... +if sys.version_info >= (3, 8): + def comb(__n: int, __k: int) -> int: ... + def copysign(__x: SupportsFloat, __y: SupportsFloat) -> float: ... def cos(__x: SupportsFloat) -> float: ... def cosh(__x: SupportsFloat) -> float: ...