Skip to content

No type declaration of "Function" and "Property Get" possible #17

@juengling

Description

@juengling

(Mkdocs v1.6.0, Python 3.12 on Windows 11)

You cannot specify a return type of a "Function" or a "Property Get". Anything before the ":" is reported as its "name". Unfortunately the type is not recognize from the property declaration (as it ist done for the "property let").

But in this case the command line complains with a warning: WARNING - griffe: <module>:9: No type or annotation for returned value 'String'

Example:

Public Property Get Text() As String
' Retrieve Text property
'
' Returns:
'	String: Text property value
Text = MyString

End Property

Result:

grafik

Trying the same example with a dummy name plus a type results in an endless loop, which terminates with RecursionError: maximum recursion depth exceeded.

' Returns:
'	Dummy (String): Text property value

See a minimum working example on Gitlab.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions