def __init__(self, prefix, unit): symbol = f"{prefix.symbol}{unit.symbol}" notation = f"{prefix.prefix}{unit.notation}" plurality = f"{prefix.prefix}{unit.plurality}" Unit.__init__(self, symbol, notation, plurality) self.prefix = prefix self.unit = unit
def __init__(self): Unit.__init__(self, "m", "meter", "meters")
def __init__(self): Unit.__init__(self, "s", "second", "seconds")
def __init__(self): Unit.__init__(self, "f", "frame", "frames")
def __init__(self): Unit.__init__(self, "px", "pixel", "pixels")
def __init__(self, **kwargs): Unit.__init__(self, **kwargs)