Skip to content

Commit

Permalink
Merge pull request #3 from miguelteixeiraa/feat/make-decorator-return…
Browse files Browse the repository at this point in the history
…-wrapped-function

Make decorator return wrapped function
  • Loading branch information
miguelteixeiraa authored Dec 14, 2023
2 parents 715e091 + 40ab4e8 commit 57ddb99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crinkle/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def decorator(
function_processor: Union[
TypeFunctionProcessor, TypeFunctionProcessorAsync
],
) -> None:
) -> Union[TypeFunctionProcessor, TypeFunctionProcessorAsync]:
if asyncio.iscoroutinefunction(function_processor):
self.add_processor(
processor=FunctionProcessorAsync(func=function_processor, name=name)
Expand All @@ -59,6 +59,7 @@ def decorator(
self.add_processor(
processor=FunctionProcessor(func=function_processor, name=name)
)
return function_processor

return decorator

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "crinkle"
version = "0.2.0"
version = "0.2.1"
description = ""
authors = ["Miguel Teixeira <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 57ddb99

Please sign in to comment.