-
Notifications
You must be signed in to change notification settings - Fork 137
Return Params start #776
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
base: main
Are you sure you want to change the base?
Return Params start #776
Conversation
|
As mentioned in our other pull request I have made this one as just the return types for public methods, I avoided any @deprecated @ignore or ones prefixed with _ for this pr. I did run the tests before and after my changes but I have failures even on main branch pre my changes, they haven't changed counts but I thought I should mention before you think about merging Godot v4.5.stable - macOS Sequoia (15.6.1) - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M4 Pro (Apple9) - Apple M4 Pro (12 threads) - 24.00 GiB memory |
|
Please post your failing tests. My prediction is that they are input related. |
bitwes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added comments for some methods that I think can be more specific than Variant but we would have to run the tests to be sure.
|
|
||
|
|
||
| func get_call_parameters(variant, method_name, index=-1): | ||
| func get_call_parameters(variant, method_name, index=-1) -> Variant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array, optionally Array[Variant], I'm fine with either, we just have to be consistent.
| ## Peforms a deep compare on both values, a CompareResult instnace is returned. | ||
| ## The optional max_differences paramter sets the max_differences to be displayed. | ||
| func compare_deep(v1, v2, max_differences=null): | ||
| func compare_deep(v1, v2, max_differences=null) -> Variant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array
| ## Create a Double of [param thing]. [param thing] should be a Class, script, | ||
| ## or scene. See [wiki]Doubles[/wiki] | ||
| func double(thing, double_strat=null, not_used_anymore=null): | ||
| func double(thing, double_strat=null, not_used_anymore=null) -> Variant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be Object I think. Unless you can't return null for Object, then it has to remain Variant. I always forget where I can/can't use null when something has a type. I think primitives are the only thing that can't be null.
| ## Create a Partial Double of [param thing]. [param thing] should be a Class, | ||
| ## script, or scene. See [wiki]Partial-Doubles[/wiki] | ||
| func partial_double(thing, double_strat=null, not_used_anymore=null): | ||
| func partial_double(thing, double_strat=null, not_used_anymore=null) -> Variant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as double

No description provided.