File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1119,7 +1119,6 @@ def h(x):  # E: Function is untyped after decorator transformation
11191119
11201120[case testDisallowAnyDecoratedUnannotatedDecoratorDeferred1]
11211121# flags: --disallow-any-decorated
1122- from typing import Any
11231122
11241123def d(f):
11251124    return f
@@ -1135,18 +1134,18 @@ c = [1]
11351134
11361135[case testDisallowAnyDecoratedUnannotatedDecoratorDeferred2]
11371136# flags: --disallow-any-decorated
1138- from typing import Any
11391137
11401138def d(f):
11411139    return f
11421140
1141+ c = 1  # no deferral - check that the previous testcase is valid
1142+ 
11431143def wrapper() -> None:
11441144    if c:
11451145        @d
11461146        def h(x):  # E: Function is untyped after decorator transformation
11471147            pass
11481148
1149- c = [1]
11501149[builtins fixtures/list.pyi]
11511150
11521151[case testDisallowAnyDecoratedErrorIsReportedOnlyOnce]
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments