Commit Graph

10 Commits

Author SHA1 Message Date
hashstat
97b16a0b34 itertools.count() can take floats as well as ints (#1650) 2017-10-07 08:30:07 -07:00
Matthias Kramm
ed6dc176da make itertools.product more precise (#1393) 2017-06-12 20:10:08 -07:00
Matthias Kramm
8d8a34cb83 Patch from @sfreilich: make itertools.ifilter predicate parameter Optional (#1257)
From Samuel Freilich:
In Python 2, the predicate parameter in itertools.ifilter and
itertools.ifilterfalse can be None, indicating that true or false values
should be retained (functionally equivalent to passing "bool" as the
predicate). In Python 3, filter and itertools.filterfalse have
the same behavior.
2017-05-09 17:50:11 -07:00
Manuel Krebber
2d96eecd30 Itertools update (#1233)
* Updated the typehints for itertools.

* Removed the overload because it caused problems and cleaned up the imports.

* Update itertools.pyi

Added back optionality of second argument for itertools.permutations.

* Update itertools.pyi

Moved the Optional which I accidentially put on the wrong function -.-
2017-05-03 08:53:48 -07:00
syrrim
9625cc738f Update accumulate signature to account for optional function arg (#896)
See https://docs.python.org/3/library/itertools.html#itertools.accumulate
2017-01-30 13:22:06 -08:00
Lukasz Langa
fe0e3744cc Fixing flake8 E261 errors 2016-12-19 22:09:35 -08:00
Yegor Roganov
2d8ff30e7a Improve itertools.islice type (#610)
`stop` parameter to `islice` can be `None`,
which is important when checking with --strict-optional
2016-10-15 14:14:36 -07:00
Guido van Rossum
dca8eeb1fe Ouch. The itertools.chain situation is slightly more complicated. 2016-04-07 15:34:45 -07:00
Guido van Rossum
17e74036f5 Implement itertools.chain.from_iterable(). 2016-04-07 14:48:38 -07:00
Guido van Rossum
8c2118bace Move contents of builtins/* to stdlib/*. This simplifies finding stubs. 2016-01-12 12:53:18 -08:00