Skip to content
Permalink
Browse files

No sip TypeHint support in 3.4

  • Loading branch information
m-kuhn committed Dec 25, 2018
1 parent 6118025 commit ef956667c687c844f116685555f83313dabe863d
Showing with 6 additions and 6 deletions.
  1. +3 −3 python/core/auto_generated/geometry/qgsgeometry.sip.in
  2. +3 −3 src/core/geometry/qgsgeometry.h
@@ -1423,7 +1423,7 @@ Try to convert the geometry to the requested type



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

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


SIP_PYOBJECT asPolyline() const /TypeHint="QgsPolylineXY"/;
SIP_PYOBJECT asPolyline() const;
%Docstring
Returns the contents of the geometry as a polyline.

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


SIP_PYOBJECT asPolygon() const /TypeHint="QgsPolygonXY"/;
SIP_PYOBJECT asPolygon() const;
%Docstring
Returns the contents of the geometry as a polygon.

@@ -1443,7 +1443,7 @@ class CORE_EXPORT QgsGeometry
* is not a single-point type, a TypeError will be raised. If the geometry
* is null, a ValueError will be raised.
*/
SIP_PYOBJECT asPoint() const SIP_TYPEHINT( QgsPointXY );
SIP_PYOBJECT asPoint() const;
% MethodCode
const QgsWkbTypes::Type type = sipCpp->wkbType();
if ( sipCpp->isNull() )
@@ -1486,7 +1486,7 @@ class CORE_EXPORT QgsGeometry
* is not a single-line type, a TypeError will be raised. If the geometry is null, a ValueError
* will be raised.
*/
SIP_PYOBJECT asPolyline() const SIP_TYPEHINT( QgsPolylineXY );
SIP_PYOBJECT asPolyline() const;
% MethodCode
const QgsWkbTypes::Type type = sipCpp->wkbType();
if ( sipCpp->isNull() )
@@ -1530,7 +1530,7 @@ class CORE_EXPORT QgsGeometry
* is not a single-polygon type, a TypeError will be raised. If the geometry is null, a ValueError
* will be raised.
*/
SIP_PYOBJECT asPolygon() const SIP_TYPEHINT( QgsPolygonXY );
SIP_PYOBJECT asPolygon() const;
% MethodCode
const QgsWkbTypes::Type type = sipCpp->wkbType();
if ( sipCpp->isNull() )

0 comments on commit ef95666

Please sign in to comment.
You can’t perform that action at this time.