def __init__(self, group=None, load=False, *args, **kwargs):
    '\n        Validate that group is either a string or a tuple of valid entry point groups, or if it\n        is not specified use the tuple of all recognized entry point groups.\n        '
    valid_entry_point_groups = get_entry_point_groups()
    if (group is None):
        self._groups = tuple(valid_entry_point_groups)
    else:
        if isinstance(group, six.string_types):
            invalidated_groups = tuple([group])
        elif isinstance(group, tuple):
            invalidated_groups = group
        else:
            raise ValueError('invalid type for group')
        groups = []
        for grp in invalidated_groups:
            if (not grp.startswith(ENTRY_POINT_GROUP_PREFIX)):
                grp = (ENTRY_POINT_GROUP_PREFIX + grp)
            if (grp not in valid_entry_point_groups):
                raise ValueError('entry point group {} is not recognized'.format(grp))
            groups.append(grp)
        self._groups = tuple(groups)
    self._init_entry_points()
    self.load = load
    super(PluginParamType, self).__init__(*args, **kwargs)
Validate that group is either a string or a tuple of valid entry point groups, or if it
is not specified use the tuple of all recognized entry point groups.
def __init__(self, group=None, load=False, *args, **kwargs):
    '\n        Validate that group is either a string or a tuple of valid entry point groups, or if it\n        is not specified use the tuple of all recognized entry point groups.\n        '
    valid_entry_point_groups = get_entry_point_groups()
    if (group is None):
        self._groups = tuple(valid_entry_point_groups)
    else:
        if isinstance(group, six.string_types):
            invalidated_groups = tuple([group])
        elif isinstance(group, tuple):
            invalidated_groups = group
        else:
            raise ValueError('invalid type for group')
        groups = []
        for grp in invalidated_groups:
            if (not grp.startswith(ENTRY_POINT_GROUP_PREFIX)):
                grp = (ENTRY_POINT_GROUP_PREFIX + grp)
            if (grp not in valid_entry_point_groups):
                raise ValueError('entry point group {} is not recognized'.format(grp))
            groups.append(grp)
        self._groups = tuple(groups)
    self._init_entry_points()
    self.load = load
    super(PluginParamType, self).__init__(*args, **kwargs)