mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-12 00:06:44 -05:00
sip doesn't use the standard Python staticmethod type for defining static methods, which means that standard means of testing for a static method (like `isinstance(..., staticmethod)`) fail with any PyQGIS static methods. This causes issues with lint tools, which incorrectly flag calls to QGIS static methods as missing self arguments. It also breaks detection of static methods in the sphinx PyQGIS docs, so all static methods are shown as non-static. Work around this in sipify, by wrapping unambiguously static methods in staticmethod wrappers.
11 lines
1.3 KiB
Python
11 lines
1.3 KiB
Python
# The following has been generated automatically from src/core/providers/qgsprovidermetadata.h
|
|
QgsMeshDriverMetadata.MeshDriverCapability.baseClass = QgsMeshDriverMetadata
|
|
QgsMeshDriverMetadata.MeshDriverCapabilities.baseClass = QgsMeshDriverMetadata
|
|
MeshDriverCapabilities = QgsMeshDriverMetadata # dirty hack since SIP seems to introduce the flags in module
|
|
try:
|
|
QgsProviderMetadata.__attribute_docs__ = {'connectionCreated': 'Emitted when a connection with the specified ``name`` is created.\n\n.. note::\n\n Only providers which implement the connection handling API will emit this signal.\n\n.. versionadded:: 3.14\n', 'connectionDeleted': 'Emitted when the connection with the specified ``name`` was deleted.\n\n.. note::\n\n Only providers which implement the connection handling API will emit this signal.\n\n.. versionadded:: 3.14\n', 'connectionChanged': 'Emitted when the connection with the specified ``name`` is changed, e.g. the settings\nrelating to the connection have been updated.\n\n.. note::\n\n Only providers which implement the connection handling API will emit this signal.\n\n.. versionadded:: 3.14\n'}
|
|
except NameError:
|
|
pass
|
|
QgsProviderMetadata.setBoolParameter = staticmethod(QgsProviderMetadata.setBoolParameter)
|
|
QgsProviderMetadata.boolParameter = staticmethod(QgsProviderMetadata.boolParameter)
|