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.
1 parent ec1a4dd commit 461882cCopy full SHA for 461882c
pdoc/test/__init__.py
@@ -719,14 +719,13 @@ def f() -> typing.List[typing.Union[str, pdoc.Doc]]: pass
719
self.assertEqual(func.return_annotation(), 'List[Union[str,\N{NBSP}pdoc.Doc]]')
720
721
@ignore_warnings
722
- def test_property_type_annotation(self):
+ def test_Variable_type_annotation(self):
723
import typing
724
725
class Foobar:
726
- """foobar"""
727
@property
728
- def prop() -> typing.Optional[int]:
729
- """prop"""
+ def prop(self) -> typing.Optional[int]:
+ pass
730
731
cls = pdoc.Class('Foobar', pdoc.Module(pdoc), Foobar)
732
prop = cls.instance_variables()[0]
0 commit comments