python-iterutils 0.2.8__py3-none-any.whl → 0.2.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
iterutils/__init__.py CHANGED
@@ -2,7 +2,7 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  __author__ = "ChenyangGao <https://chenyanggao.github.io>"
5
- __version__ = (0, 2, 8)
5
+ __version__ = (0, 2, 9)
6
6
  __all__ = [
7
7
  "Yield", "YieldFrom", "GenStep", "GenStepIter", "iterable",
8
8
  "async_iterable", "run_gen_step", "run_gen_step_iter",
@@ -700,7 +700,8 @@ def foreach(
700
700
  else:
701
701
  for arg in iterable:
702
702
  value(arg)
703
- return async_foreach(value, iterable, *iterables, threaded=threaded)
703
+ else:
704
+ return async_foreach(value, iterable, *iterables, threaded=threaded)
704
705
 
705
706
 
706
707
  async def async_foreach(
@@ -731,7 +732,7 @@ def through(
731
732
  """
732
733
  if threaded or not isinstance(iterable, Iterable):
733
734
  return async_through(iterable, take_while, threaded=threaded)
734
- if take_while is None:
735
+ elif take_while is None:
735
736
  for _ in iterable:
736
737
  pass
737
738
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-iterutils
3
- Version: 0.2.8
3
+ Version: 0.2.9
4
4
  Summary: Python another itertools.
5
5
  Home-page: https://github.com/ChenyangGao/python-modules/tree/main/python-iterutils
6
6
  License: MIT
@@ -0,0 +1,7 @@
1
+ LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
2
+ iterutils/__init__.py,sha256=F0fRpVVj0JNuyY8FPI_awl9hDrp7QO_8RDwuZcBn68g,37793
3
+ iterutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ python_iterutils-0.2.9.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
5
+ python_iterutils-0.2.9.dist-info/METADATA,sha256=tgRvO1JFf1iLI-mEN_8lU4duXJmlcd5DNe-C5zluLNk,1397
6
+ python_iterutils-0.2.9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
+ python_iterutils-0.2.9.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
2
- iterutils/__init__.py,sha256=8EH6wqHA7ogI_VxHRBb68ZeheD0WOTdYOIbWLtrdqBc,37777
3
- iterutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- python_iterutils-0.2.8.dist-info/LICENSE,sha256=o5242_N2TgDsWwFhPn7yr8YJNF7XsJM5NxUMtcT97bc,1100
5
- python_iterutils-0.2.8.dist-info/METADATA,sha256=DF5tmR35s_jxzz46D6P9wmAKOp_GuTJoAAhX8slWSKo,1397
6
- python_iterutils-0.2.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
- python_iterutils-0.2.8.dist-info/RECORD,,