[Doc] Clarify is_null methods of Callable and Signal

This commit is contained in:
A Thousand Ships 2024-08-25 12:33:20 +02:00
parent e3550cb20f
commit 5b91040ba6
No known key found for this signature in database
GPG Key ID: 2033189A662F8BD7
2 changed files with 3 additions and 2 deletions

View File

@ -203,7 +203,8 @@
<method name="is_null" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if this [Callable] has no target to call the method on.
Returns [code]true[/code] if this [Callable] has no target to call the method on. Equivalent to [code]callable == Callable()[/code].
[b]Note:[/b] This is [i]not[/i] the same as [code]not is_valid()[/code] and using [code]not is_null()[/code] will [i]not[/i] guarantee that this callable can be called. Use [method is_valid] instead.
</description>
</method>
<method name="is_standard" qualifiers="const">

View File

@ -119,7 +119,7 @@
<method name="is_null" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if the signal's name does not exist in its object, or the object is not valid.
Returns [code]true[/code] if this [Signal] has no object and the signal name is empty. Equivalent to [code]signal == Signal()[/code].
</description>
</method>
</methods>