From 2b7b0db7476cd14a134e9cc91ef7f0ebc1fd7a6f Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sun, 25 Jun 2017 20:07:14 +1000 Subject: [PATCH] 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. --- python/analysis/analysis.sip | 2 +- python/core/core.sip | 2 +- python/gui/gui.sip | 2 +- python/server/server.sip | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/analysis/analysis.sip b/python/analysis/analysis.sip index aa13548ddd47..c8f57a1f0756 100644 --- a/python/analysis/analysis.sip +++ b/python/analysis/analysis.sip @@ -1,5 +1,5 @@ %Module(name=qgis._analysis, - keyword_arguments="Optional") + keyword_arguments="All") %Import QtCore/QtCoremod.sip %Import QtGui/QtGuimod.sip diff --git a/python/core/core.sip b/python/core/core.sip index 64d38f8f41b1..59d80620d7c7 100644 --- a/python/core/core.sip +++ b/python/core/core.sip @@ -1,5 +1,5 @@ %Module(name=qgis._core, - keyword_arguments="Optional") + keyword_arguments="All") %ModuleCode diff --git a/python/gui/gui.sip b/python/gui/gui.sip index 3701e8b9cdb9..9bf607330d51 100644 --- a/python/gui/gui.sip +++ b/python/gui/gui.sip @@ -1,5 +1,5 @@ %Module(name=qgis._gui, - keyword_arguments="Optional") + keyword_arguments="All") %Feature HAVE_QSCI_SIP diff --git a/python/server/server.sip b/python/server/server.sip index 8c868e8a5c92..2c3c2acf0d70 100644 --- a/python/server/server.sip +++ b/python/server/server.sip @@ -1,5 +1,5 @@ %Module(name=qgis._server, - keyword_arguments="Optional") + keyword_arguments="All") %Import QtCore/QtCoremod.sip