Creates a new Python class definition.
The configuration arguments
ReadonlynameThe name of the class
Optional ReadonlymoduleThe module name containing the class
ReadonlybasesThe parent classes to inherit from
ReadonlydecoratorsThe decorators applied to the class
Optional ReadonlydocstringThe documentation string for the class
ReadonlyreferenceThe class reference for this class
Adds a nested class to this class.
The nested class to add
Adds a code block for unsupported features.
The code block to add
Writes the class definition and its members to the writer.
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 Python class definition in the AST. This class handles the generation of Python class declarations including methods, attributes, and nested classes.