diff options
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.foo_not_a_constructor_new.page')
-rw-r--r-- | tests/scanner/Regress-1.0-Python-expected/Regress.foo_not_a_constructor_new.page | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.foo_not_a_constructor_new.page b/tests/scanner/Regress-1.0-Python-expected/Regress.foo_not_a_constructor_new.page new file mode 100644 index 00000000..0f9ba11a --- /dev/null +++ b/tests/scanner/Regress-1.0-Python-expected/Regress.foo_not_a_constructor_new.page @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<page id="Regress.foo_not_a_constructor_new" + type="topic" + style="function" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/1.0/ui/"> + <info> + + <link xref="index" group="function" type="guide"/> + <api:function> + <api:returns> + <api:type>Regress.FooObject</api:type> + </api:returns> + <api:name>regress_foo_not_a_constructor_new</api:name> + </api:function> + + </info> + <title>Index.foo_not_a_constructor_new</title> + +<synopsis><code mime="text/x-python"> +@returns(Regress.FooObject) +def foo_not_a_constructor_new(): + # Python wrapper for regress_foo_not_a_constructor_new() +</code></synopsis> + + + <p>This should be scanned as a top-level function, and shouldn't cause +a "Can't find matching type for constructor" warning.</p> + + + + +<terms> +<item> +<title><code>Returns</code></title> +{formatter.format(node, node.retval.doc)} +</item> +</terms> + + + +</page> |