Skip to content
Permalink
Browse files
Fix SIP_HOLDGIL annotations
  • Loading branch information
nyalldawson committed May 25, 2021
1 parent 2b6c3c1 commit 615bbd8163e0da50cd0072bf165be28320f1e0df
Showing with 4 additions and 4 deletions.
  1. +1 −1 python/core/auto_generated/geometry/qgslinestring.sip.in
  2. +3 −3 src/core/geometry/qgslinestring.h
@@ -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).

@@ -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

/**
@@ -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 ) )
{

0 comments on commit 615bbd8

Please sign in to comment.