typedargs/typeinfo.py
def split_type(self, typename):
        """
        Given a potentially complex type, split it into its base type and specializers
        """

        name = self._canonicalize_type(typename)
        if '(' not in name:
            return name, False, []

        base, sub = name.split('(')
        if len(sub) == 0 or sub[-1] != ')':
            raise ArgumentError("syntax error in complex type, no matching ) found", passed_type=typename, basetype=base, subtype_string=sub)

        sub = sub[:-1]

        subs = sub.split(',')
        return base, True, subs
def split_type(self, typename):
        """
        Given a potentially complex type, split it into its base type and specializers
        """

        name = self._canonicalize_type(typename)
        if '(' not in name:
            return name, False, []

        base, sub = name.split('(')
        if len(sub) == 0 or sub[-1] != ')':
            raise ArgumentError("syntax error in complex type, no matching ) found", passed_type=typename, basetype=base, subtype_string=sub)

        sub = sub[:-1]

        subs = sub.split(',')
        return base, True, subs
def split_type ( self , typename ) : name = self . _canonicalize_type ( typename ) if '(' not in name : return name , False , [ ] base , sub = name . split ( '(' ) if len ( sub ) == 0 or sub [ - 1 ] != ')' : raise ArgumentError ( "syntax error in complex type, no matching ) found" , passed_type = typename , basetype = base , subtype_string = sub ) sub = sub [ : - 1 ] subs = sub . split ( ',' ) return base , True , subs
Given a potentially complex type, split it into its base type and specializers
Given a potentially complex type split it into its base type and specializers