Commit Graph

4 Commits

Author SHA1 Message Date
Eklavya Sharma
b92991bc2a Add TimeTuple in python3's time.pyi and datetime.pyi. (#597)
Add `TimeTuple = Tuple[int, int, int, int, int, int, int, int, int]`
to stdlib/3/time.pyi and stdlib/3/datetime.pyi.

Use `TimeTuple` instead of `tuple` (where relevant) in time.pyi for
stronger type checking.

Use `TimeTuple` instead of
`Tuple[int, int, int, int, int, int, int, int, int]` in datetime.pyi
to increase readability.
2016-10-11 14:48:47 -07:00
Rich Li
9de69f9cf2 Include time updates with Python 3.3 (#563)
* Add definitions added in Python 3.3

* Remove blanks between function stubs

* Group Unix-only functions into platform checks

* Correct get_clock_info() return type to SimpleNamespace
2016-09-21 15:26:04 -07:00
Yasushi Saito
61007ab1dc Add tm_zone and tm_gmtoff to time.pyi (#551)
* Enable tm_gmtoff and tm_zone only for python >= 3.3.
2016-09-19 14:38:14 -07:00
Guido van Rossum
8c2118bace Move contents of builtins/* to stdlib/*. This simplifies finding stubs. 2016-01-12 12:53:18 -08:00