File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ def test_weakref_proxy():
6262    with pytest.raises(ReferenceError):
6363        p.some_meth()
6464
65+ [builtins fixtures/exception.pyi]
6566[file driver.py]
6667from native import test_weakref_proxy
6768
@@ -88,6 +89,7 @@ def test_weakref_proxy_with_callback():
8889    with pytest.raises(ReferenceError):
8990        p.some_meth()
9091
92+ [builtins fixtures/exception.pyi]
9193[file driver.py]
9294from native import test_weakref_proxy_with_callback
9395
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class BaseException:
2222class  Exception (BaseException ): pass 
2323class  RuntimeError (Exception ): pass 
2424class  NotImplementedError (RuntimeError ): pass 
25+ class  ReferenceError (Exception ): ...
2526
2627if  sys .version_info  >=  (3 , 11 ):
2728    _BT_co  =  TypeVar ("_BT_co" , bound = BaseException , covariant = True )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments