From 920def0b1e5ef8de7dcc0f07604b96700c17f63d Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 25 Jan 2016 17:43:36 -0800 Subject: [PATCH] Fix datetime.timedelta() argument types to be floats. --- stdlib/2.7/datetime.pyi | 6 +++--- stdlib/3/datetime.pyi | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stdlib/2.7/datetime.pyi b/stdlib/2.7/datetime.pyi index edb1eaee0..44699f306 100644 --- a/stdlib/2.7/datetime.pyi +++ b/stdlib/2.7/datetime.pyi @@ -108,9 +108,9 @@ class timedelta(SupportsAbs[timedelta]): max = ... # type: timedelta resolution = ... # type: timedelta - def __init__(self, days: int = ..., seconds: int = ..., microseconds: int = ..., - milliseconds: int = ..., minutes: int = ..., hours: int = ..., - weeks: int = ...) -> None: ... + def __init__(self, days: float = ..., seconds: float = ..., microseconds: float = ..., + milliseconds: float = ..., minutes: float = ..., hours: float = ..., + weeks: float = ...) -> None: ... @property def days(self) -> int: ... diff --git a/stdlib/3/datetime.pyi b/stdlib/3/datetime.pyi index fd84b95fe..4d8efb8b8 100644 --- a/stdlib/3/datetime.pyi +++ b/stdlib/3/datetime.pyi @@ -107,9 +107,9 @@ class timedelta(SupportsAbs[timedelta]): max = ... # type: timedelta resolution = ... # type: timedelta - def __init__(self, days: int = ..., seconds: int = ..., microseconds: int = ..., - milliseconds: int = ..., minutes: int = ..., hours: int = ..., - weeks: int = ...) -> None: ... + def __init__(self, days: float = ..., seconds: float = ..., microseconds: float = ..., + milliseconds: float = ..., minutes: float = ..., hours: float = ..., + weeks: float = ...) -> None: ... @property def days(self) -> int: ...