@@ -20,9 +20,6 @@ class ComponentEntry:
2020 abbreviation : str
2121 """The abbreviation to use in the client matrix"""
2222
23- color : str
24- """The color to use in the client matrix"""
25-
2623 extensions : List [ExtensionEntry ]
2724 """The supported extensions"""
2825
@@ -32,7 +29,6 @@ def from_json(self, d: Dict) -> "ComponentEntry":
3229 return ComponentEntry (
3330 name = d ["name" ],
3431 abbreviation = d ["abbreviation" ],
35- color = d ["color" ],
3632 extensions = exts
3733 )
3834
@@ -59,29 +55,27 @@ class ClientData:
5955 form_factors : List [FormFactorEntry ]
6056 """The supported form factors"""
6157
62- def get_component_for_extension (self , ext_name : str ) -> Optional [ComponentEntry ]:
58+ def get_component_for_extension (self , ext_name : str ) -> List [ComponentEntry ]:
59+ component_entries = []
6360 for component in self .components :
6461 for entry in component .extensions :
6562 if entry .name == ext_name :
66- return component
63+ component_entries += [ component ]
6764
68- return None
65+ return component_entries
6966
70- def get_extension_entry (self , ext_name : str ) -> Optional [ExtensionEntry ]:
67+ def get_extension_entry (self , ext_name : str ) -> List [ExtensionEntry ]:
7168 """
72- Get the entry for the named extension, if it exists.
69+ Get the entries for the named extension, if they exists.
7370
74- This can tell you if the runtime supports that extension, as well as any notes from the inventory.
71+ This can tell you if the client supports that extension, as well as any notes from the inventory.
7572 """
7673 extension_entries = []
7774
7875 for component in self .components :
7976 extension_entries += [ entry for entry in component .extensions if entry .name == ext_name ]
8077
81- if not extension_entries :
82- return
83- assert len (extension_entries ) == 1
84- return extension_entries [0 ]
78+ return extension_entries
8579
8680 @property
8781 def conformance_submission_url (self ) -> Optional [str ]:
0 commit comments