Skip to content

Commit 64d17ed

Browse files
committed
add comment
1 parent c1f970d commit 64d17ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unpythonic/syntax/scopeanalyzer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def getnonlocals(tree, *, stop, collect, **kw):
147147

148148
elif type(tree) is ClassDef:
149149
cname = [tree.name]
150+
# TODO: Base class scan currently only supports bare ``Name`` nodes.
151+
# TODO: Not clear what we should do if a base is an ``Attribute``
152+
# TODO: (``mymod.myclass``) or a ``Subscript`` (``my_list_of_classes[0]``).
150153
bases = [b.id for b in tree.bases if type(b) is Name]
151154
# these are referred to via self.foo, not by bare names.
152155
# classattrs = _get_names_in_store_context.collect(tree.body)

0 commit comments

Comments
 (0)