Skip to content

Prevent infinite loop while annotating and an unknown type is encountered. #14

Description

@jamie-pate
            try:
                types = try_get_types(dereference)

        if is_array and arraydecl is None:
            types['member'] = types['json']
            types['json'] = 'json_type_array'
        return (types, arraydecl)
    except ExpansionError as err:
        # try again in case it's an array
        if not is_array:
            dereference -= 1
            is_array = True
            if initial_err is None:
                initial_err = err
                initial_tb = sys.exc_info()[2]
-                raise err

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions