8 lines
		
	
	
		
			179 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
		
			179 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from typing import Any
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								def override(content: Any, **kwargs) -> Any:
							 | 
						||
| 
								 | 
							
								    attributes = dict(content.__dict__)
							 | 
						||
| 
								 | 
							
								    attributes.update(kwargs)
							 | 
						||
| 
								 | 
							
								    return type(content)(**attributes)
							 |