mirror of
				https://github.com/python/cpython.git
				synced 2025-10-28 12:15:13 +00:00 
			
		
		
		
	 b0544ba77c
			
		
	
	
		b0544ba77c
		
			
		
	
	
	
	
		
			
			This reverts commits044a1048caand1be456ae9d, adapting the code to changes that happened after it.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			126 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			126 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import annotations
 | |
| 
 | |
| import dataclasses
 | |
| 
 | |
| 
 | |
| class Foo:
 | |
|     pass
 | |
| 
 | |
| 
 | |
| @dataclasses.dataclass
 | |
| class Bar:
 | |
|     foo: Foo
 |