You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Functions without a return type should contain "-> None" to indicate it does not return anything. The functions do include "-> None" in the docstring but not after the function itself:
An example of the many functions:
When using a type checker these functions are considered "untyped"
Expected behavior
All functions contain a return type.
Used versions (please complete the following information):
FreeCAD-stub version 1.0.17
The text was updated successfully, but these errors were encountered:
What type checker do you use? is it pyright?
I would expect that functions from stubs will be interpreted to return Any if no explicit type is provided.
This is a little tricky, because if no return annotation is present, it means that extracting the return type from c++ failed.
I no longer use return type from docstring, because it turns out that these signatures frequently are wrong and moreover no standard syntax is used for this (although in your example it would be easy to extract return type).
I am leaving this issue open until I rewrite the code generator to use clang - I expect that this will be solved then.
Describe the bug
Functions without a return type should contain "-> None" to indicate it does not return anything. The functions do include "-> None" in the docstring but not after the function itself:
An example of the many functions:

When using a type checker these functions are considered "untyped"
Expected behavior
All functions contain a return type.
Used versions (please complete the following information):
The text was updated successfully, but these errors were encountered: