type of NamePart in definition should work.
This commit is contained in:
1 parent
fe98940624
commit
b643325889
6 files changed
+15
-8
No files matched your search
@@ -137,6 +137,8 @@ class BaseDefinition(object):
|
||||
return stripped.type()
|
||||
if isinstance(stripped, er.InstanceElement):
|
||||
stripped = stripped.var
|
||||
if isinstance(stripped, pr.NamePart):
|
||||
stripped = stripped.parent
|
||||
if isinstance(stripped, pr.Name):
|
||||
stripped = stripped.parent
|
||||
return type(stripped).__name__.lower()
|
||||
|
||||
Reference in new issue
Block a user