Skip to content

Commit cf29bf2

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

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
@@ -98,7 +98,7 @@ def visit_FunctionDef(self, node: FunctionDef) -> Union[FunctionDef, AsyncFuncti
9898
return node
9999

100100
class ExtractAwaitExpressions(NodeTransformer):
101-
def visit_Call(self, node: Call) -> Optional[Union[AST, List[AST]]]:
101+
def visit_Call(self, node: Call) -> Union[Call, Await]:
102102
if isinstance(node.func, Name) and node.func.id == 'await_it':
103103
if len(node.args) != 1 or node.keywords:
104104
raise WrongMarkerSyntaxError('The "await_it" marker can be used with only one positional argument.')

0 commit comments

Comments
 (0)