def range_type_name(self, slot: SlotDefinition, containing_class_name: ClassDefinitionName) -> str:
if slot.primary_key or slot.identifier:<EOL><INDENT>return self.python_name_for(containing_class_name) + camelcase(slot.name)<EOL><DEDENT>if slot.range in self.schema.classes and not slot.inlined:<EOL><INDENT>class_key = self.key_name_for(cast(ClassDefinitionName, slot.range))<EOL>if class_key:<EOL><INDENT>return class_key<EOL><DEDENT><DEDENT>return self.python_name_for(slot.range)<EOL>
Generate the type name for the slot