File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed 
test-data/stubgen/pybind11_mypy_demo Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ def infer_prop_type(docstr: Optional[str]) -> Optional[str]:
288288            return  None 
289289
290290    # Ignore special properties/attributes. 
291-     if  name . startswith ( '__' )  and   name . endswith ( '__' ):
291+     if  is_skipped_attribute ( name ):
292292        return 
293293
294294    inferred  =  infer_prop_type (getattr (obj , '__doc__' , None ))
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ PI: float
55
66class  Point :
77    class  AngleUnit :
8+         __members__ : ClassVar [dict ] =  ...  # read-only 
89        __entries : ClassVar [dict ] =  ...
910        degree : ClassVar [Point .AngleUnit ] =  ...
1011        radian : ClassVar [Point .AngleUnit ] =  ...
@@ -20,6 +21,7 @@ class Point:
2021        def  name (self ) ->  str : ...
2122
2223    class  LengthUnit :
24+         __members__ : ClassVar [dict ] =  ...  # read-only 
2325        __entries : ClassVar [dict ] =  ...
2426        inch : ClassVar [Point .LengthUnit ] =  ...
2527        mm : ClassVar [Point .LengthUnit ] =  ...
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments