          if isinstance(coord_trans, CoordTransform):
              capi.geom_transform(self.ptr, coord_trans.ptr)
          elif isinstance(coord_trans, SpatialReference):
              capi.geom_transform_to(self.ptr, coord_trans.ptr)
          elif isinstance(coord_trans, six.integer_types + six.string_types):
              sr = SpatialReference(coord_trans)
              capi.geom_transform_to(self.ptr, sr.ptr)
          else:
              raise TypeError('Transform only accepts CoordTransform, '
                              'SpatialReference, string, and integer objects.')
 
</s> remove         elif isinstance(srs, six.integer_types + six.string_types):
 </s> add         elif isinstance(srs, (int, str)): </s> remove         elif isinstance(source_srs, (int, six.string_types)):
 </s> add         elif isinstance(source_srs, (int, str)): </s> remove         elif isinstance(value, six.integer_types + six.string_types):
 </s> add         elif isinstance(value, (int, str)): </s> remove         elif isinstance(x, six.integer_types + (float,)) and isinstance(y, six.integer_types + (float,)):
 </s> add         elif isinstance(x, (float, int)) and isinstance(y, (float, int)): </s> remove             if isinstance(z, six.integer_types + (float,)):
 </s> add             if isinstance(z, (float, int)):
        elif isinstance(coord_trans, (int, str)):
          if isinstance(coord_trans, CoordTransform):
              capi.geom_transform(self.ptr, coord_trans.ptr)
          elif isinstance(coord_trans, SpatialReference):
              capi.geom_transform_to(self.ptr, coord_trans.ptr)
        elif isinstance(coord_trans, (int, str)):
              sr = SpatialReference(coord_trans)
              capi.geom_transform_to(self.ptr, sr.ptr)
          else:
              raise TypeError('Transform only accepts CoordTransform, '
                              'SpatialReference, string, and integer objects.')
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
django/contrib/gis/gdal/geometries.py