Skip to content

Commit

Permalink
No sip TypeHint support in 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 25, 2018
1 parent 6118025 commit ef95666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions python/core/auto_generated/geometry/qgsgeometry.sip.in
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions src/core/geometry/qgsgeometry.h
Expand Up @@ -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() )
Expand Down Expand Up @@ -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() )
Expand Down Expand Up @@ -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() )
Expand Down

0 comments on commit ef95666

Please sign in to comment.