type of NamePart in definition should work.

This commit is contained in:
Dave Halter committed 2014-04-18 01:31:07 +02:00
1 parent fe98940624
commit b643325889
6 files changed
+15 -8

No files matched your search

+3
View File
@@ -1395,6 +1395,9 @@ class NamePart(object):
def __hash__(self):
return hash(self.string)
def get_parent_until(self, *args, **kwargs):
return self.parent.get_parent_until(*args, **kwargs)
@property
def start_pos(self):
offset = self.parent._sub_module.line_offset