Stability-AI / stablediffusion

High-Resolution Image Synthesis with Latent Diffusion Models
MIT License
39.25k stars 5.06k forks source link

Enhancement: Add Type Hints and Improve Error Message in append_dims Function #398

Open mandlinsarah opened 2 months ago

mandlinsarah commented 2 months ago

This PR enhances the append_dims function by adding type hints and improving the error message for better clarity. These changes do not impact the core functionality of the code but improve its readability and maintainability.