Open mohsenhariri opened 3 months ago
The original implementation used the class name directly to instantiate the model, which can cause issues when subclassing. This change replaces the explicit class name with cls, allowing the method to correctly instantiate instances of subclasses.
The original implementation used the class name directly to instantiate the model, which can cause issues when subclassing. This change replaces the explicit class name with cls, allowing the method to correctly instantiate instances of subclasses.