minor delint
add docstring to attach method of knob class