Skip to content

Commit 5b07682

Browse files
author
esblinov
committed
some typing shit
1 parent 0a11352 commit 5b07682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transfunctions/transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_async_function(self) -> Callable[FunctionParams, Coroutine[Any, Any, Ret
8383
original_function = self.function
8484

8585
class ConvertSyncFunctionToAsync(NodeTransformer):
86-
def visit_FunctionDef(self, node: FunctionDef) -> Optional[Union[AST, List[AST]]]:
86+
def visit_FunctionDef(self, node: FunctionDef) -> Union[FunctionDef, AsyncFunctionDef]:
8787
if node.name == original_function.__name__:
8888
return AsyncFunctionDef(
8989
name=original_function.__name__,

0 commit comments

Comments
 (0)