mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-03 16:36:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			133 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Union
 | 
						|
 | 
						|
 | 
						|
async def exc(e: Exception, x: Union[ValueError, TypeError]) -> Exception:
 | 
						|
    assert e == x
 | 
						|
    return e
 |