Source code for geetools.tools._deprecated_computedobject

"""Legacy method for all ``ee.ComputedObject`` subclasses."""
import ee
from deprecated.sphinx import deprecated


@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isString(ComputedObject): return ComputedObject.isInstance(ee.String)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isInteger(ComputedObject): return ComputedObject.isInstance(ee.Integer)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isFloat(ComputedObject): return ComputedObject.isInstance(ee.Float)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isImage(ComputedObject): return ComputedObject.isInstance(ee.Image)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isImageCollection(ComputedObject): return ComputedObject.isInstance(ee.ImageCollection)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isFeature(ComputedObject): return ComputedObject.isInstance(ee.Feature)
@deprecated(version="1.0.0", reason="Use ee.ComputedObject.isInstance instead")
[docs] def isGeometry(ComputedObject): return ComputedObject.isInstance(ee.Geometry)