Semyon Proshev
fed4e03e53
Add __new__ to str and int stubs in both Pythons. ( #1352 )
...
* Update default values to `...` in `__init__` and `__new__` in `int` and `str`.
* Add `__new__` to `enum.IntEnum` to override inherited `__new__`.
* Add `type: ignore` comment to `IntEnum`
2017-06-12 20:53:32 -07:00
Semyon Proshev
5db571a8f3
Update typing.MutableMapping.update stubs to allow keyword-only arguments ( #1370 )
2017-05-30 21:44:10 -07:00
Semyon Proshev
f9872cafd8
Update collections and typing.NamedTuple ( #1276 )
...
* Update stubs for `collections` module in both Pythons.
* Update `typing.NamedTuple` stub to have `_source` attribute.
* Fix compatibility of `deque.index` signature with supertype `Sequence`
2017-05-27 15:01:40 -07:00
Semyon Proshev
1ebcc1d11f
Add timespec parameter to datetime.datetime.isoformat for Python 3.6+. ( #1349 )
2017-05-25 07:33:50 -07:00
Semyon Proshev
a2561cc4b2
Update typing.NamedTuple.__init__ to support fields passed through kwargs ( #1239 )
...
* Update `typing.NamedTuple.__init__` to support fields passed through kwargs
* `Verbose` and `rename` were returned to `typing.NamedTuple.__init__`
2017-05-04 08:26:15 -07:00
Semyon Proshev
8c1690befc
Update stubs for classmethod and staticmethod in both Pythons. ( #1089 )
2017-03-29 10:19:17 -07:00
Semyon Proshev
df4c5c81e8
Add n-ary stub for itertools.izip ( #1071 )
2017-03-22 07:35:21 -07:00
Semyon Proshev
c10dc797e7
Remove object as the only ancestor for string.Formatter in Python 3 stubs. ( #1072 )
2017-03-22 07:33:46 -07:00
Semyon Proshev
78d0cc32df
Add __new__ to builtin dict ( #1056 )
2017-03-22 07:33:06 -07:00
Semyon Proshev
25c66a011e
Add zip stubs for 5 and more arguments. ( #1041 )
...
* Add `zip` stubs for 5 and more arguments.
* Update `zip` stubs for 6+ arguments.
2017-03-20 11:38:38 -07:00
Semyon Proshev
52da2a176b
Fix datetime stubs ( #992 )
2017-03-13 09:12:46 -07:00