mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04: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.
7 lines
1.2 KiB
Python
7 lines
1.2 KiB
Python
# The following has been generated automatically from src/core/providers/qgsdataprovider.h
|
|
try:
|
|
QgsDataProvider.__attribute_docs__ = {'transformContext': 'Coordinate transform context', 'fullExtentCalculated': 'Emitted whenever a deferred extent calculation is completed by the provider.\n\nLayers should connect to this signal and update their cached extents whenever\nit is emitted.\n', 'dataChanged': "Emitted whenever a change is made to the data provider which may have\ncaused changes in the provider's data OUTSIDE of QGIS.\n\nWhen emitted from a :py:class:`QgsVectorDataProvider`, any cached information such as\nfeature ids should be invalidated.\n\n.. warning::\n\n This signal is NOT emitted when changes are made to a provider\n from INSIDE QGIS -- e.g. when adding features to a vector layer, deleting features\n or modifying existing features. Instead, the specific :py:class:`QgsVectorLayer` signals\n should be used to detect these operations.\n", 'notify': 'Emitted when the datasource issues a notification.\n\n.. seealso:: :py:func:`setListening`\n'}
|
|
except NameError:
|
|
pass
|
|
QgsDataProvider.sublayerSeparator = staticmethod(QgsDataProvider.sublayerSeparator)
|