Skip to content

Commit

Permalink
Merge branch 'master' into duckdb-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
pingsutw authored Feb 23, 2023
2 parents 198bafb + b3ad158 commit 9a0e42b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flytekit/core/map_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,12 @@ def _raw_execute(self, **kwargs) -> Any:
return outputs


def map_task(task_function: PythonFunctionTask, concurrency: int = 0, min_success_ratio: float = 1.0, **kwargs):
def map_task(
task_function: typing.Union[typing.Callable, PythonFunctionTask],
concurrency: int = 0,
min_success_ratio: float = 1.0,
**kwargs,
):
"""
Use a map task for parallelizable tasks that run across a list of an input type. A map task can be composed of
any individual :py:class:`flytekit.PythonFunctionTask`.
Expand Down
Empty file added flytekit/py.typed
Empty file.
1 change: 1 addition & 0 deletions plugins/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,5 @@ def run(self):
classifiers=["Private :: Do Not Upload to pypi server"],
install_requires=[],
cmdclass={"install": InstallCmd, "develop": DevelopCmd},
package_data={"flytekit": ["py.typed"]},
)

0 comments on commit 9a0e42b

Please sign in to comment.