Skip to content

Commit

Permalink
Always use correct \since annotation for enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2024
1 parent d318cdb commit 343709f
Show file tree
Hide file tree
Showing 54 changed files with 1,723 additions and 819 deletions.
616 changes: 440 additions & 176 deletions python/PyQt6/core/auto_additions/qgis.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
QgsAbstractDatabaseProviderConnection.Foreign.__doc__ = "Foreign data wrapper"
QgsAbstractDatabaseProviderConnection.IncludeSystemTables = QgsAbstractDatabaseProviderConnection.TableFlag.IncludeSystemTables
QgsAbstractDatabaseProviderConnection.IncludeSystemTables.is_monkey_patched = True
QgsAbstractDatabaseProviderConnection.IncludeSystemTables.__doc__ = "Include system tables (since QGIS 3.30)"
QgsAbstractDatabaseProviderConnection.IncludeSystemTables.__doc__ = "Include system tables \n.. versionadded:: 3.30"
QgsAbstractDatabaseProviderConnection.TableFlag.__doc__ = """Flags for table properties.
Flags can be useful for filtering the tables returned
Expand All @@ -32,7 +32,10 @@
* ``View``: View table
* ``MaterializedView``: Materialized view table
* ``Foreign``: Foreign data wrapper
* ``IncludeSystemTables``: Include system tables (since QGIS 3.30)
* ``IncludeSystemTables``: Include system tables
.. versionadded:: 3.30
"""
# --
Expand Down
70 changes: 50 additions & 20 deletions python/PyQt6/core/auto_additions/qgscallout.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@
QgsCallout.LabelAnchorPointPosition.__doc__ = "Label's anchor point position"
QgsCallout.OriginX = QgsCallout.Property.OriginX
QgsCallout.OriginX.is_monkey_patched = True
QgsCallout.OriginX.__doc__ = "X-coordinate of callout origin (label anchor) (since QGIS 3.20)"
QgsCallout.OriginX.__doc__ = "X-coordinate of callout origin (label anchor) \n.. versionadded:: 3.20"
QgsCallout.OriginY = QgsCallout.Property.OriginY
QgsCallout.OriginY.is_monkey_patched = True
QgsCallout.OriginY.__doc__ = "Y-coordinate of callout origin (label anchor) (since QGIS 3.20)"
QgsCallout.OriginY.__doc__ = "Y-coordinate of callout origin (label anchor) \n.. versionadded:: 3.20"
QgsCallout.DestinationX = QgsCallout.Property.DestinationX
QgsCallout.DestinationX.is_monkey_patched = True
QgsCallout.DestinationX.__doc__ = "X-coordinate of callout destination (feature anchor) (since QGIS 3.20)"
QgsCallout.DestinationX.__doc__ = "X-coordinate of callout destination (feature anchor) \n.. versionadded:: 3.20"
QgsCallout.DestinationY = QgsCallout.Property.DestinationY
QgsCallout.DestinationY.is_monkey_patched = True
QgsCallout.DestinationY.__doc__ = "Y-coordinate of callout destination (feature anchor) (since QGIS 3.20)"
QgsCallout.DestinationY.__doc__ = "Y-coordinate of callout destination (feature anchor) \n.. versionadded:: 3.20"
QgsCallout.Curvature = QgsCallout.Property.Curvature
QgsCallout.Curvature.is_monkey_patched = True
QgsCallout.Curvature.__doc__ = "Curvature of curved line callouts (since QGIS 3.20)"
QgsCallout.Curvature.__doc__ = "Curvature of curved line callouts \n.. versionadded:: 3.20"
QgsCallout.Orientation = QgsCallout.Property.Orientation
QgsCallout.Orientation.is_monkey_patched = True
QgsCallout.Orientation.__doc__ = "Orientation of curved line callouts (since QGIS 3.20)"
QgsCallout.Orientation.__doc__ = "Orientation of curved line callouts \n.. versionadded:: 3.20"
QgsCallout.Margins = QgsCallout.Property.Margins
QgsCallout.Margins.is_monkey_patched = True
QgsCallout.Margins.__doc__ = "Margin from text (since QGIS 3.20)"
QgsCallout.Margins.__doc__ = "Margin from text \n.. versionadded:: 3.20"
QgsCallout.WedgeWidth = QgsCallout.Property.WedgeWidth
QgsCallout.WedgeWidth.is_monkey_patched = True
QgsCallout.WedgeWidth.__doc__ = "Balloon callout wedge width (since QGIS 3.20)"
QgsCallout.WedgeWidth.__doc__ = "Balloon callout wedge width \n.. versionadded:: 3.20"
QgsCallout.CornerRadius = QgsCallout.Property.CornerRadius
QgsCallout.CornerRadius.is_monkey_patched = True
QgsCallout.CornerRadius.__doc__ = "Balloon callout corner radius (since QGIS 3.20)"
QgsCallout.CornerRadius.__doc__ = "Balloon callout corner radius \n.. versionadded:: 3.20"
QgsCallout.BlendMode = QgsCallout.Property.BlendMode
QgsCallout.BlendMode.is_monkey_patched = True
QgsCallout.BlendMode.__doc__ = "Callout blend mode (since QGIS 3.20)"
QgsCallout.BlendMode.__doc__ = "Callout blend mode \n.. versionadded:: 3.20"
QgsCallout.Property.__doc__ = """Data definable properties.
* ``MinimumCalloutLength``: Minimum length of callouts
Expand All @@ -56,16 +56,46 @@
* ``DrawCalloutToAllParts``: Whether callout lines should be drawn to all feature parts
* ``AnchorPointPosition``: Feature's anchor point position
* ``LabelAnchorPointPosition``: Label's anchor point position
* ``OriginX``: X-coordinate of callout origin (label anchor) (since QGIS 3.20)
* ``OriginY``: Y-coordinate of callout origin (label anchor) (since QGIS 3.20)
* ``DestinationX``: X-coordinate of callout destination (feature anchor) (since QGIS 3.20)
* ``DestinationY``: Y-coordinate of callout destination (feature anchor) (since QGIS 3.20)
* ``Curvature``: Curvature of curved line callouts (since QGIS 3.20)
* ``Orientation``: Orientation of curved line callouts (since QGIS 3.20)
* ``Margins``: Margin from text (since QGIS 3.20)
* ``WedgeWidth``: Balloon callout wedge width (since QGIS 3.20)
* ``CornerRadius``: Balloon callout corner radius (since QGIS 3.20)
* ``BlendMode``: Callout blend mode (since QGIS 3.20)
* ``OriginX``: X-coordinate of callout origin (label anchor)
.. versionadded:: 3.20
* ``OriginY``: Y-coordinate of callout origin (label anchor)
.. versionadded:: 3.20
* ``DestinationX``: X-coordinate of callout destination (feature anchor)
.. versionadded:: 3.20
* ``DestinationY``: Y-coordinate of callout destination (feature anchor)
.. versionadded:: 3.20
* ``Curvature``: Curvature of curved line callouts
.. versionadded:: 3.20
* ``Orientation``: Orientation of curved line callouts
.. versionadded:: 3.20
* ``Margins``: Margin from text
.. versionadded:: 3.20
* ``WedgeWidth``: Balloon callout wedge width
.. versionadded:: 3.20
* ``CornerRadius``: Balloon callout corner radius
.. versionadded:: 3.20
* ``BlendMode``: Callout blend mode
.. versionadded:: 3.20
"""
# --
Expand Down
Loading

0 comments on commit 343709f

Please sign in to comment.