Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix SIP_HOLDGIL annotations
  • Loading branch information
nyalldawson committed May 25, 2021
1 parent 2b6c3c1 commit 615bbd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgslinestring.sip.in
Expand Up @@ -31,7 +31,7 @@ Line string geometry type, with support for z-dimension and m-values.
Constructor for an empty linestring geometry.
%End

QgsLineString( SIP_PYOBJECT points /TypeHint="Sequence[Union[QgsPoint, QgsPointXY, Sequence[float]]]"/ ) [( const QVector<double> &x, const QVector<double> &y, const QVector<double> &z = QVector<double>(), const QVector<double> &m = QVector<double>(), bool is25DType = false )];
QgsLineString( SIP_PYOBJECT points /TypeHint="Sequence[Union[QgsPoint, QgsPointXY, Sequence[float]]]"/ ) /HoldGIL/ [( const QVector<double> &x, const QVector<double> &y, const QVector<double> &z = QVector<double>(), const QVector<double> &m = QVector<double>(), bool is25DType = false )];
%Docstring
Construct a linestring from a sequence of points (:py:class:`QgsPoint` objects, :py:class:`QgsPointXY` objects, or sequences of float values).

Expand Down
6 changes: 3 additions & 3 deletions src/core/geometry/qgslinestring.h
Expand Up @@ -57,15 +57,15 @@ class CORE_EXPORT QgsLineString: public QgsCurve
* in the vector.
* \since QGIS 3.0
*/
QgsLineString( const QVector<QgsPoint> &points ) SIP_HOLDGIL;
QgsLineString( const QVector<QgsPoint> &points );

/**
* Construct a linestring from list of points.
* This constructor is more efficient then calling setPoints()
* or repeatedly calling addVertex()
* \since QGIS 3.0
*/
QgsLineString( const QVector<QgsPointXY> &points ) SIP_HOLDGIL;
QgsLineString( const QVector<QgsPointXY> &points );
#else

/**
Expand All @@ -75,7 +75,7 @@ class CORE_EXPORT QgsLineString: public QgsCurve
*
* \since QGIS 3.20
*/
QgsLineString( SIP_PYOBJECT points SIP_TYPEHINT( Sequence[Union[QgsPoint, QgsPointXY, Sequence[float]]] ) ) [( const QVector<double> &x, const QVector<double> &y, const QVector<double> &z = QVector<double>(), const QVector<double> &m = QVector<double>(), bool is25DType = false )];
QgsLineString( SIP_PYOBJECT points SIP_TYPEHINT( Sequence[Union[QgsPoint, QgsPointXY, Sequence[float]]] ) ) SIP_HOLDGIL [( const QVector<double> &x, const QVector<double> &y, const QVector<double> &z = QVector<double>(), const QVector<double> &m = QVector<double>(), bool is25DType = false )];
% MethodCode
if ( !PySequence_Check( a0 ) )
{
Expand Down

0 comments on commit 615bbd8

Please sign in to comment.