Skip to content

Commit b2e4041

Browse files
DelazJnyalldawson
authored andcommitted
Add handlesnull parameter to custom function template help
1 parent b019bfe commit b2e4041

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/user.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ def load_user_expressions(path):
8383
8484
The @qgsfunction decorator accepts the following arguments:
8585
86-
:param args: Defines the number of arguments. With ``args='auto'`` the number
86+
:param args: Defines the number of arguments. With ``args='auto'`` the number of
8787
arguments will automatically be extracted from the signature.
88+
With ``args=-1``, you can pass any number of arguments.
8889
:param group: The name of the group under which this expression function will
8990
be listed.
91+
:param handlesnull: Set this to True if your function has custom handling for NULL values.
92+
If False, the result will always be NULL as soon as any parameter is NULL.
93+
Defaults to False.
9094
:param usesgeometry: Set this to False if your function does not access
9195
feature.geometry(). Defaults to True.
9296
:param referenced_columns: An array of attribute names that are required to run

0 commit comments

Comments
 (0)