Skip to content

Commit 93358bb

Browse files
committed
Return default class 'unknown' for Arguments
1 parent ff3be8e commit 93358bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

symbols/argument.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .var import SymbolVAR
1616
from api.config import OPTIONS
1717
from api.constants import SCOPE
18+
from api.constants import CLASS
1819

1920

2021
class SymbolARGUMENT(Symbol):
@@ -56,7 +57,7 @@ def type_(self):
5657

5758
@property
5859
def class_(self):
59-
return self.value.class_
60+
return getattr(self.value, 'class_', CLASS.unknown)
6061

6162
@property
6263
def byref(self):

0 commit comments

Comments
 (0)