make TimeTuple private in datetime.pyi (#1312)

Also, these stubs aren't incomplete.
This commit is contained in:
Jelle Zijlstra
2017-05-23 15:01:02 -07:00
committed by Matthias Kramm
parent 9b2b60eafc
commit 05a4059b3b

View File

@@ -1,13 +1,9 @@
# Stubs for datetime
# NOTE: These are incomplete!
from typing import Optional, SupportsAbs, Tuple, overload
MINYEAR = 0
MAXYEAR = 0
TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]
_TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]
class tzinfo:
def tzname(self, dt: Optional[datetime]) -> str: ...
@@ -191,9 +187,9 @@ class datetime:
def strftime(self, fmt: str) -> str: ...
def __format__(self, fmt: str) -> str: ...
def toordinal(self) -> int: ...
def timetuple(self) -> TimeTuple: ... # TODO return type
def timetuple(self) -> _TimeTuple: ...
def timestamp(self) -> float: ...
def utctimetuple(self) -> TimeTuple: ... # TODO return type
def utctimetuple(self) -> _TimeTuple: ...
def date(self) -> _date: ...
def time(self) -> _time: ...
def timetz(self) -> _time: ...