I'm doing something similar to the following
class Parrot(object): def __init__(self): self.__voltage = 100000 @property def voltage(self): """Get the current voltage.""" return self.__voltage However it sees the voltage property as an int so when I call like so
p = Parrot() print(p.voltage()) I get
TypeError: 'int' object is not callable I've tried with one and two underscored to mangle the voltage property name.