Commit Graph

8 Commits

Author SHA1 Message Date
Sebastian Meßmer
ba82ac08ed Fix type stubs in type.pyi (#970)
Mypy recognized the type hints as parameter names. This fixes that.
2017-03-06 08:04:51 -08:00
Lukasz Langa
6b5c6626d6 Fixing flake8 E121, E122, E123, E124, E125, E126 errors 2016-12-19 23:53:19 -08:00
Lukasz Langa
fe0e3744cc Fixing flake8 E261 errors 2016-12-19 22:09:35 -08:00
Łukasz Langa
85807ed72a logging.Formatter attributes fixed (#721)
Fixes #720.

Related changes: used a NamedTuple for time.struct_time on Python 3, used
sys.version selectors for proper typing of #716, added missing *Style classes
to logging on Python 3.
2016-11-30 09:09:05 -08:00
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