parameters: (self, func_names=None)
return_statement: return [t for t in types if t not in types_to_skip]
docstring: Gets type definitions related to chosen functions.
  
      Types related to one function will land in the same translation unit,
      we gather the types, sort it and put as a sublist in types list.
      This is necessary as we can't compare types from two different translation
      units.
  
      Args:
        func_names: list of function names to take into consideration, empty means
          all functions.
  
      Returns:
        list of types in correct (ready to render) order
docstring_summary: Gets type definitions related to chosen functions.
docstring_tokens: Gets type definitions related to chosen functions .
function: def _get_related_types(self, func_names=None):
      # type: (Optional[List[Text]]) -> List[Type]
      """Gets type definitions related to chosen functions.
  
      Types related to one function will land in the same translation unit,
      we gather the types, sort it and put as a sublist in types list.
      This is necessary as we can't compare types from two different translation
      units.
  
      Args:
        func_names: list of function names to take into consideration, empty means
          all functions.
  
      Returns:
        list of types in correct (ready to render) order
      """
      processed = set()
      fn_related_types = set()
      types = []
      types_to_skip = set()
  
      for f in self._get_functions(func_names):
        fn_related_types = f.get_related_types()
        types += sorted(r for r in fn_related_types if r not in processed)
        processed.update(fn_related_types)
        types_to_skip.update(f.translation_unit().types_to_skip)
  
      return [t for t in types if t not in types_to_skip]
function_tokens: def _get_related_types ( self , func_names = None ) : # type: (Optional[List[Text]]) -> List[Type] processed = set ( ) fn_related_types = set ( ) types = [ ] types_to_skip = set ( ) for f in self . _get_functions ( func_names ) : fn_related_types = f . get_related_types ( ) types += sorted ( r for r in fn_related_types if r not in processed ) processed . update ( fn_related_types ) types_to_skip . update ( f . translation_unit ( ) . types_to_skip ) return [ t for t in types if t not in types_to_skip ]