Skip to content

Commit 2b7b0db

Browse files
committed
Allow keyword arguments for all arguments in PyQGIS bindings
Previously this was only enabled for optional arguments (i.e. those with default values). Enabling them for all arguments allows for more readable PyQGIS code, and there seems no downside given that we already have this support partly enabled. The consequence of this change is that when 3.0 API is frozen the freeze must also include the naming of function arguments, since that's effectively now part of public API.
1 parent 69af2f5 commit 2b7b0db

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

python/analysis/analysis.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%Module(name=qgis._analysis,
2-
keyword_arguments="Optional")
2+
keyword_arguments="All")
33

44
%Import QtCore/QtCoremod.sip
55
%Import QtGui/QtGuimod.sip

python/core/core.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%Module(name=qgis._core,
2-
keyword_arguments="Optional")
2+
keyword_arguments="All")
33

44
%ModuleCode
55

python/gui/gui.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%Module(name=qgis._gui,
2-
keyword_arguments="Optional")
2+
keyword_arguments="All")
33

44
%Feature HAVE_QSCI_SIP
55

python/server/server.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%Module(name=qgis._server,
2-
keyword_arguments="Optional")
2+
keyword_arguments="All")
33

44

55
%Import QtCore/QtCoremod.sip

0 commit comments

Comments
 (0)