Skip to content

Commit ef95666

Browse files
committed
No sip TypeHint support in 3.4
1 parent 6118025 commit ef95666

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/core/auto_generated/geometry/qgsgeometry.sip.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ Try to convert the geometry to the requested type
14231423

14241424

14251425

1426-
SIP_PYOBJECT asPoint() const /TypeHint="QgsPointXY"/;
1426+
SIP_PYOBJECT asPoint() const;
14271427
%Docstring
14281428
Returns the contents of the geometry as a 2-dimensional point.
14291429

@@ -1452,7 +1452,7 @@ is null, a ValueError will be raised.
14521452
%End
14531453

14541454

1455-
SIP_PYOBJECT asPolyline() const /TypeHint="QgsPolylineXY"/;
1455+
SIP_PYOBJECT asPolyline() const;
14561456
%Docstring
14571457
Returns the contents of the geometry as a polyline.
14581458

@@ -1483,7 +1483,7 @@ will be raised.
14831483
%End
14841484

14851485

1486-
SIP_PYOBJECT asPolygon() const /TypeHint="QgsPolygonXY"/;
1486+
SIP_PYOBJECT asPolygon() const;
14871487
%Docstring
14881488
Returns the contents of the geometry as a polygon.
14891489

src/core/geometry/qgsgeometry.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ class CORE_EXPORT QgsGeometry
14431443
* is not a single-point type, a TypeError will be raised. If the geometry
14441444
* is null, a ValueError will be raised.
14451445
*/
1446-
SIP_PYOBJECT asPoint() const SIP_TYPEHINT( QgsPointXY );
1446+
SIP_PYOBJECT asPoint() const;
14471447
% MethodCode
14481448
const QgsWkbTypes::Type type = sipCpp->wkbType();
14491449
if ( sipCpp->isNull() )
@@ -1486,7 +1486,7 @@ class CORE_EXPORT QgsGeometry
14861486
* is not a single-line type, a TypeError will be raised. If the geometry is null, a ValueError
14871487
* will be raised.
14881488
*/
1489-
SIP_PYOBJECT asPolyline() const SIP_TYPEHINT( QgsPolylineXY );
1489+
SIP_PYOBJECT asPolyline() const;
14901490
% MethodCode
14911491
const QgsWkbTypes::Type type = sipCpp->wkbType();
14921492
if ( sipCpp->isNull() )
@@ -1530,7 +1530,7 @@ class CORE_EXPORT QgsGeometry
15301530
* is not a single-polygon type, a TypeError will be raised. If the geometry is null, a ValueError
15311531
* will be raised.
15321532
*/
1533-
SIP_PYOBJECT asPolygon() const SIP_TYPEHINT( QgsPolygonXY );
1533+
SIP_PYOBJECT asPolygon() const;
15341534
% MethodCode
15351535
const QgsWkbTypes::Type type = sipCpp->wkbType();
15361536
if ( sipCpp->isNull() )

0 commit comments

Comments
 (0)