Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
type(object) -> the object's type
type(name, bases, dict) -> a new type

src/o/b/obspy-0.9.0/obspy/core/util/obspy_types.py   obspy(Download)
    def __add__(self, other):
        new = self.__class__(float(self) + other)
        new.__dict__.update(**self.__dict__)
        return new
 
    def __iadd__(self, other):
        new = self.__class__(float(self) + other)
    def __mul__(self, other):
        new = self.__class__(float(self) * other)
        new.__dict__.update(**self.__dict__)
        return new
 
    def __imul__(self, other):
        new = self.__class__(float(self) * other)

src/o/b/obspy-HEAD/obspy/core/util/obspy_types.py   obspy(Download)
    def __add__(self, other):
        new = self.__class__(float(self) + other)
        new.__dict__.update(**self.__dict__)
        return new
 
    def __iadd__(self, other):
        new = self.__class__(float(self) + other)
    def __mul__(self, other):
        new = self.__class__(float(self) * other)
        new.__dict__.update(**self.__dict__)
        return new
 
    def __imul__(self, other):
        new = self.__class__(float(self) * other)