Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Oct 11, 2024
1 parent 5c99689 commit 75c3ad0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ is not present on this field.
%Docstring
Returns the strength of a field constraint, or ConstraintStrengthNotSet if the constraint
is not present on this field. If the strength is not set returns ConstraintStrengthNotSet
for anything but ConstraintExpression when returns ConstraintStrengthHard.
for anything but ConstraintExpression which returns ConstraintStrengthHard.

.. seealso:: :py:func:`constraints`

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsfieldconstraints.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ is not present on this field.
%Docstring
Returns the strength of a field constraint, or ConstraintStrengthNotSet if the constraint
is not present on this field. If the strength is not set returns ConstraintStrengthNotSet
for anything but ConstraintExpression when returns ConstraintStrengthHard.
for anything but ConstraintExpression which returns ConstraintStrengthHard.

.. seealso:: :py:func:`constraints`

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsfieldconstraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CORE_EXPORT QgsFieldConstraints
/**
* Returns the strength of a field constraint, or ConstraintStrengthNotSet if the constraint
* is not present on this field. If the strength is not set returns ConstraintStrengthNotSet
* for anything but ConstraintExpression when returns ConstraintStrengthHard.
* for anything but ConstraintExpression which returns ConstraintStrengthHard.
* \see constraints()
* \see setConstraintStrength()
*/
Expand Down

0 comments on commit 75c3ad0

Please sign in to comment.