Skip to content

Commit

Permalink
Fix annotation of signature_from_functiondef()
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Jun 11, 2023
1 parent a3f0cd3 commit 4822ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydoctor/astbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def __repr__(self) -> str:
return ''.join(node2stan.node2html(self._colorized.to_node(), self._linker))

def signature_from_functiondef(node: Union[ast.AsyncFunctionDef, ast.FunctionDef],
ctx: model.Function) -> Signature:
ctx: model.Function) -> Tuple[Mapping[str, Optional[ast.expr]], Signature]:
# Position-only arguments were introduced in Python 3.8.
posonlyargs: Sequence[ast.arg] = getattr(node.args, 'posonlyargs', ())

Expand Down

0 comments on commit 4822ea9

Please sign in to comment.