mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
	
		
			224 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			15 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
							 |