Skip to content

Commit b4c81c9

Browse files
committed
shallow_const: Don't bother delving into vector types
1 parent 4316c51 commit b4c81c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/dml/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def sub(t):
187187

188188
def shallow_const(t):
189189
t = safe_realtype_shallow(t)
190-
while not t.const and isinstance(t, (TArray, TVector)):
190+
while not t.const and isinstance(t, TArray):
191191
t = safe_realtype_shallow(t.base)
192192

193193
return t.const

0 commit comments

Comments
 (0)