Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

Wildcard import clarification

by roundabout, Friday, 26 April 2024, 10:04:21 (1714125861), pushed by roundabout, Wednesday, 31 July 2024, 06:54:46 (1722408886)

Author identity: vlad <vlad.muntoiu@gmail.com>

3d9782ef27a1499d96f7b31c3a02cde9e2acde15

doc/internal/Style guide.md

@@ -103,7 +103,8 @@ Imports should be ordered like this:

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            * application imports
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            * application `from`-imports
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        Wildcard imports are discouraged and prohibited for libraries.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        Wildcard imports are discouraged and prohibited for libraries. However, they are fine if the module
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        defines `__all__`.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            ### Interior Whitespace
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            Never insert more than one space around operators and other symbols. Never add spaces just to align lines.