- add Task class for typing again

This commit is contained in:
Wim Pomp
2024-11-04 14:52:46 +01:00
parent c47650fc30
commit 46bd419d3d
2 changed files with 6 additions and 1 deletions

View File

@@ -37,6 +37,11 @@ class PoolSingleton:
return select().PoolSingleton.close() return select().PoolSingleton.close()
class Task:
def __new__(cls, *args, **kwargs):
return select().Task(*args, **kwargs)
class Chunks(Iterable): class Chunks(Iterable):
""" Yield successive chunks from lists. """ Yield successive chunks from lists.
Usage: chunks(list0, list1, ...) Usage: chunks(list0, list1, ...)

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "parfor" name = "parfor"
version = "2024.10.3" version = "2024.11.0"
description = "A package to mimic the use of parfor as done in Matlab." description = "A package to mimic the use of parfor as done in Matlab."
authors = ["Wim Pomp <wimpomp@gmail.com>"] authors = ["Wim Pomp <wimpomp@gmail.com>"]
license = "GPLv3" license = "GPLv3"