Skip to content

Commit 11082b1

Browse files
committed
Use "annotation" for the return_annotation param description
The param holds an inspect-style annotation (it accepts the inspect.Parameter.empty sentinel, which is not a type hint) and is named return_annotation. "Type hint" stays in the caveat and the args/kwargs dict-form descriptions, where the claim is genuinely about expressing types.
1 parent c6faf13 commit 11082b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dags/signature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def with_signature(
110110
enforce: Whether the signature should be enforced or just
111111
added to the function for introspection. This creates runtime
112112
overhead.
113-
return_annotation: The return type hint. By default, the return annotation is
113+
return_annotation: The return annotation. By default, it is
114114
`inspect.Parameter.empty`.
115115
116116
Returns:

0 commit comments

Comments
 (0)