Skip to content

Commit

Permalink
Revert "Make flytekit comply with PEP-561 (#1516)" (#1532)
Browse files Browse the repository at this point in the history
This reverts commit b3ad158.

Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Mar 3, 2023
1 parent 71d436a commit 8ccb5dd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions flytekit/core/map_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,7 @@ def _raw_execute(self, **kwargs) -> Any:
return outputs


def map_task(
task_function: typing.Union[typing.Callable, PythonFunctionTask],
concurrency: int = 0,
min_success_ratio: float = 1.0,
**kwargs,
):
def map_task(task_function: 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 removed flytekit/py.typed
Empty file.
1 change: 0 additions & 1 deletion plugins/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,4 @@ 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 8ccb5dd

Please sign in to comment.