def addAttr(self, attr):
    'Add a new dynamic attribute to node\n\n        Arguments:\n            attr (Plug): Add this attribute\n\n        Example:\n            >>> node = createNode("transform")\n            >>> attr = Double("myAttr", default=5.0)\n            >>> node.addAttr(attr)\n            >>> node["myAttr"] == 5.0\n            True\n\n        '
    if isinstance(attr, _AbstractAttribute):
        attr = attr.create()
    self._fn.addAttribute(attr)
Add a new dynamic attribute to node

Arguments:
    attr (Plug): Add this attribute

Example:
    >>> node = createNode("transform")
    >>> attr = Double("myAttr", default=5.0)
    >>> node.addAttr(attr)
    >>> node["myAttr"] == 5.0
    True
def addAttr(self, attr):
    'Add a new dynamic attribute to node\n\n        Arguments:\n            attr (Plug): Add this attribute\n\n        Example:\n            >>> node = createNode("transform")\n            >>> attr = Double("myAttr", default=5.0)\n            >>> node.addAttr(attr)\n            >>> node["myAttr"] == 5.0\n            True\n\n        '
    if isinstance(attr, _AbstractAttribute):
        attr = attr.create()
    self._fn.addAttribute(attr)