Lines Matching refs:group
48 def by_priority(cls, group=None):
49 if group is None:
51 elif group == 'type':
53 elif group == 'decl':
55 elif isinstance(group, str):
56 raise NotImplementedError(group)
58 # XXX Treat group as a set of kinds & return in priority order?
59 raise NotImplementedError(group)
86 group = groups
87 if group not in cls._GROUPS:
88 raise ValueError(f'unsupported group {group!r}')
89 groups = [group]
94 for group in groups:
95 if kind in cls._GROUPS[group]:
96 return group
101 def resolve_group(cls, group):
102 if isinstance(group, cls):
103 return {group}
104 elif isinstance(group, str):
106 return cls._GROUPS[group].copy()
108 raise ValueError(f'unsupported group {group!r}')
111 for gr in group:
114 #return {*cls.resolve_group(g) for g in group}