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.
This commit is contained in:
Nyall Dawson 2017-06-25 20:07:14 +10:00
parent 69af2f51d0
commit 2b7b0db747
4 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
%Module(name=qgis._analysis,
keyword_arguments="Optional")
keyword_arguments="All")
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip

View File

@ -1,5 +1,5 @@
%Module(name=qgis._core,
keyword_arguments="Optional")
keyword_arguments="All")
%ModuleCode

View File

@ -1,5 +1,5 @@
%Module(name=qgis._gui,
keyword_arguments="Optional")
keyword_arguments="All")
%Feature HAVE_QSCI_SIP

View File

@ -1,5 +1,5 @@
%Module(name=qgis._server,
keyword_arguments="Optional")
keyword_arguments="All")
%Import QtCore/QtCoremod.sip