-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No type declaration of "Function" and "Property Get" possible #17
Comments
juengling
changed the title
No type declaration of "Property Get" possible
No type declaration of "Function" and "Property Get" possible
Aug 7, 2024
Same with Functions, I edited the title and description accordingly. |
rudolfbyker
added a commit
that referenced
this issue
Sep 19, 2024
… signatures are parsed correctly.
rudolfbyker
added a commit
that referenced
this issue
Sep 19, 2024
rudolfbyker
added a commit
that referenced
this issue
Sep 19, 2024
rudolfbyker
added a commit
that referenced
this issue
Sep 19, 2024
Merged
Thanks for reporting. Please review #21 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(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:
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
.See a minimum working example on Gitlab.
The text was updated successfully, but these errors were encountered: