mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
make TimeTuple private in datetime.pyi (#1312)
Also, these stubs aren't incomplete.
This commit is contained in:
committed by
Matthias Kramm
parent
9b2b60eafc
commit
05a4059b3b
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user