geekcomputers / Python

My Python Examples
http://www.thegeekblog.co.uk
MIT License
31.89k stars 12.31k forks source link

Change import statements to use only used classes #2398

Closed Ferszus closed 1 month ago

Ferszus commented 1 month ago

Updated import statements to avoid from module import * usage. Importing specific functions or classes improves code readability, minimizes the risk of name conflicts, and enhances performance by only loading necessary components. This approach also facilitates better static analysis and autocompletion support.