File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,15 @@ def is_local_symbol(ident):
231
231
if is_local_symbol (st .name ):
232
232
if st .type == _symtable .TYPE_TYPE_PARAM :
233
233
# Current 'st' is an annotation scope with one or
234
- # more children (we expect only one, but ,
235
- # so we need to find the corresponding inner function,
236
- # class or type alias.
234
+ # more children (we expect only one, but we might
235
+ # have more in the future). In particular, we need
236
+ # to find the corresponding inner function, class or
237
+ # type alias.
237
238
st = next ((c for c in st .children if c .name == st .name ), None )
238
239
# if 'st' is None, then the annotation scopes are broken
239
240
assert st is not None , 'annotation scopes are broken'
240
241
242
+ # only select function-like symbols
241
243
if st .type == _symtable .TYPE_FUNCTION :
242
244
d [st .name ] = 1
243
245
self .__methods = tuple (d )
You can’t perform that action at this time.
0 commit comments