mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Tools such as ruff can ignore "imported but unused" warnings if a line ends with "# noqa: F401". It avoids the temptation to remove an import which is used effectively.
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			296 B
		
	
	
	
		
			Python
		
	
	
	
	
	
try:
 | 
						|
    from _datetime import *
 | 
						|
    from _datetime import __doc__  # noqa: F401
 | 
						|
except ImportError:
 | 
						|
    from _pydatetime import *
 | 
						|
    from _pydatetime import __doc__  # noqa: F401
 | 
						|
 | 
						|
__all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo",
 | 
						|
           "MINYEAR", "MAXYEAR", "UTC")
 |