mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
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:
parent
69af2f51d0
commit
2b7b0db747
@ -1,5 +1,5 @@
|
||||
%Module(name=qgis._analysis,
|
||||
keyword_arguments="Optional")
|
||||
keyword_arguments="All")
|
||||
|
||||
%Import QtCore/QtCoremod.sip
|
||||
%Import QtGui/QtGuimod.sip
|
||||
|
@ -1,5 +1,5 @@
|
||||
%Module(name=qgis._core,
|
||||
keyword_arguments="Optional")
|
||||
keyword_arguments="All")
|
||||
|
||||
%ModuleCode
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
%Module(name=qgis._gui,
|
||||
keyword_arguments="Optional")
|
||||
keyword_arguments="All")
|
||||
|
||||
%Feature HAVE_QSCI_SIP
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
%Module(name=qgis._server,
|
||||
keyword_arguments="Optional")
|
||||
keyword_arguments="All")
|
||||
|
||||
|
||||
%Import QtCore/QtCoremod.sip
|
||||
|
Loading…
x
Reference in New Issue
Block a user