Creates a new Python class reference.
The configuration arguments
Readonly
nameThe name of the class
Optional
Readonly
moduleThe module name containing the class
Optional
Readonly
aliasOptional alias for the class
Writes the class reference to the writer and adds it to the import collection.
The writer to write to
Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.
The string representation of the AST node
Represents a reference to a Python class. This class handles the generation of class references in type annotations and manages the necessary imports for the referenced classes.