mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	 b692dc8475
			
		
	
	
		b692dc8475
		
	
	
	
	
		
			
			various updates from upstream python/typing repo: - Added typing.Counter and typing.ChainMap generics - More flexible typing.NamedTuple - Improved generic ABC caching - More tests - Bugfixes - Other updates * Add Misc/NEWS entry * Add issue number
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			224 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			224 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Module for testing the behavior of generics across different modules."""
 | |
| 
 | |
| from typing import TypeVar, Generic
 | |
| 
 | |
| T = TypeVar('T')
 | |
| 
 | |
| 
 | |
| class A(Generic[T]):
 | |
|     pass
 | |
| 
 | |
| 
 | |
| class B(Generic[T]):
 | |
|     class A(Generic[T]):
 | |
|         pass
 |