-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
(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:
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