Commit f6c67280 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix bug with ranges in find_basic_type

parent 77140fd9
......@@ -545,7 +545,8 @@ def find_basic_type(a_type, pool=None):
if typename.lower() == basic_type.ReferencedTypeName.lower():
basic_type = pool[typename].type
if Min is not None and Max is not None \
and is_numeric(basic_type):
and (is_numeric(basic_type) or is_string(basic_type)
or is_sequenceof(basic_type)):
# Subtypes may have defined subranges
new_type = type('Subtype', basic_type.__bases__,
dict (basic_type.__dict__))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment