def __init__(self, name):
        # type: (APartName) -> None
        super(CounterPart, self).__init__(name)
        # TODO: why doesn't this show up in the docs for CounterPart?
        self.counter = NumberMeta(
            "float64", "The current value of the counter",
            tags=[config_tag(), Widget.TEXTINPUT.tag()]
        ).create_attribute_model()
        """Attribute holding the current counter value"""
        self.delta = NumberMeta(
            "float64", "The amount to increment() by",
            tags=[config_tag(), Widget.TEXTINPUT.tag()]
        ).create_attribute_model(initial_value=1)
        """Attribute holding the amount to increment() by"""
def __init__ ( self , name ) : super ( CounterPart , self ) . __init__ ( name ) self . counter = NumberMeta ( "float64" , "The current value of the counter" , tags = [ config_tag ( ) , Widget . TEXTINPUT . tag ( ) ] ) . create_attribute_model ( ) self . delta = NumberMeta ( "float64" , "The amount to increment() by" , tags = [ config_tag ( ) , Widget . TEXTINPUT . tag ( ) ] ) . create_attribute_model ( initial_value = 1 )
Attribute holding the current counter value