diff --git a/docs/source/api/python/mantid/api/SpectrumInfo.rst b/docs/source/api/python/mantid/api/SpectrumInfo.rst
index 7052d99025f24e365aa5d6a0f75c8fc7fc80320d..3dc60b62aac340f602ef0d324cd1813e1fd987f7 100644
--- a/docs/source/api/python/mantid/api/SpectrumInfo.rst
+++ b/docs/source/api/python/mantid/api/SpectrumInfo.rst
@@ -116,7 +116,8 @@ The returned object can then be used to call other methods that belong to ``Spec
 
 	# Get a SpectrumDefinition object
 	spectrumDefinition = info.getSpectrumDefinition(0)
-	print(type(spectrumDefinition))
+	from mantid.api import SpectrumDefinition
+	print("The type is SpectrumDefinition: {}".format(isinstance(spectrumDefinition, SpectrumDefinition)))
 
 Output:
 
@@ -124,7 +125,7 @@ Output:
 
 	10.0
 	[0,0,-10]
-	<class '_api.SpectrumDefinition'>
+	The type is SpectrumDefinition: True
 
 
 *bases:* :py:obj:`mantid.api.SpectrumInfo`
@@ -135,4 +136,3 @@ Output:
     :members:
     :undoc-members:
     :inherited-members:
-