Fix datetime.timedelta() argument types to be floats.

This commit is contained in:
Tim Abbott authored and Guido van Rossum committed 2016-01-26 16:30:15 -08:00
1 parent c2555b3119
commit 920def0b1e
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -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: ...
+3 -3
View File
@@ -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: ...