class_docstr: Representation of a varying (variables passed from one shader to the
  next).
  
  Varyings can inherit their dtype from another Variable, allowing for
  more flexibility in composing shaders.
class_docstr_tok: ["Representation","of","a","varying","(","variables","passed","from","one","shader","to","the","next",")",".","Varyings","can","inherit","their","dtype","from","another","Variable",",","allowing","for","more","flexibility","in","composing","shaders","."]
docstr: Link this Varying to another object from which it will derive its
  dtype.
  
  This method is used internally when assigning an attribute to
  a varying using syntax ``function[varying] = attr``.
docstr_tok: ["Link","this","Varying","to","another","object","from","which","it","will","derive","its","dtype",".","This","method","is","used","internally","when","assigning","an","attribute","to","a","varying","using","syntax","``","function","[","varying","]","=","attr","``","."]
code: def link(self, var):
      """Link this Varying to another object from which it will derive its
      dtype.
  
      This method is used internally when assigning an attribute to
      a varying using syntax ``function[varying] = attr``.
      """
      assert self._dtype is not None or hasattr(var, "dtype")
      self._link = var
      self.changed()
  
imports: import numpy
  from .shader_object import ShaderObject
label_desc: Use image node_id 5 for calling the Varying obj's underlying member method code with example usage: obj.link(var) without return types