parameters: (generator)
return_statement: return __viable_source_types_cache[generator]
docstring: Caches the result of 'viable_source_types_for_generator'.
docstring_summary: Caches the result of 'viable_source_types_for_generator'.
docstring_tokens: Caches the result of viable_source_types_for_generator .
function: def viable_source_types_for_generator (generator):
      """ Caches the result of 'viable_source_types_for_generator'.
      """
      assert isinstance(generator, Generator)
      if generator not in __viable_source_types_cache:
          __vstg_cached_generators.append(generator)
          __viable_source_types_cache[generator] = viable_source_types_for_generator_real (generator)
  
      return __viable_source_types_cache[generator]
function_tokens: def viable_source_types_for_generator ( generator ) : assert isinstance ( generator , Generator ) if generator not in __viable_source_types_cache : __vstg_cached_generators . append ( generator ) __viable_source_types_cache [ generator ] = viable_source_types_for_generator_real ( generator ) return __viable_source_types_cache [ generator ]