parameters: (
          self, name: str, lineno: t.Optional[int] = None
      )
return_statement: return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
docstring: Return an attribute node for the current extension.  This is useful
          to pass constants on extensions to generated template code.
  
          ::
  
              self.attr('_my_attribute', lineno=lineno)
docstring_summary: Return an attribute node for the current extension.  This is useful
          to pass constants on extensions to generated template code.
docstring_tokens: Return an attribute node for the current extension . This is useful to pass constants on extensions to generated template code .
function: def attr(
          self, name: str, lineno: t.Optional[int] = None
      ) -> nodes.ExtensionAttribute:
          """Return an attribute node for the current extension.  This is useful
          to pass constants on extensions to generated template code.
  
          ::
  
              self.attr('_my_attribute', lineno=lineno)
          """
          return nodes.ExtensionAttribute(self.identifier, name, lineno=lineno)
function_tokens: def attr ( self , name : str , lineno : t . Optional [ int ] = None ) -> nodes . ExtensionAttribute : return nodes . ExtensionAttribute ( self . identifier , name , lineno = lineno )