We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81cccdf + fcf7691 commit 92b86afCopy full SHA for 92b86af
quartodoc/tests/example_stubs.py
@@ -0,0 +1,2 @@
1
+def f(a, b):
2
+ """The original docstring."""
quartodoc/tests/example_stubs.pyi
+def f(a: int, b: str):
+ """The stub docstring"""
quartodoc/tests/test_basic.py
@@ -56,6 +56,11 @@ def test_render_attribute():
56
assert MdRenderer().render(a) == "I am an attribute docstring"
57
58
59
+def test_get_object_stub_pyi():
60
+ obj = get_object("quartodoc.tests.example_stubs:f")
61
+ assert obj.parameters[0].annotation.name == "int"
62
+
63
64
def test_get_object_dynamic_module_root():
65
obj = get_object("quartodoc", dynamic=True)
66
assert isinstance(obj, dc.Module)
0 commit comments