<span class="m-doc-wrap-bumper">def <a href="#annotation_optional" class="m-doc-self">annotation_optional</a>(</span><span class="m-doc-wrap">a: typing.Optional[float])</span>
</dt>
<dd>Annotation with the Optional type</dd>
+ <dt id="annotation_strings">
+ <span class="m-doc-wrap-bumper">def <a href="#annotation_strings" class="m-doc-self">annotation_strings</a>(</span><span class="m-doc-wrap">param: typing.List[int],
+ another: bool,
+ third: str = 'hello') -> float</span>
+ </dt>
+ <dd>Annotated using strings, should result in exactly the same as annotation()</dd>
<dt id="annotation_tuple_instead_of_tuple">
<span class="m-doc-wrap-bumper">def <a href="#annotation_tuple_instead_of_tuple" class="m-doc-self">annotation_tuple_instead_of_tuple</a>(</span><span class="m-doc-wrap">a)</span>
</dt>
"""An annotated function"""
pass
+def annotation_strings(param: 'List[int]', another: 'bool', third: 'str' = "hello") -> 'float':
+ """Annotated using strings, should result in exactly the same as annotation()"""
+ pass
+
def no_annotation(a, b, z):
"""Non-annotated function"""
pass