@@ -56,7 +56,7 @@ def lookup(self, cls: Type[object]) -> Optional[object]:
5656 :param cls: Class or type of the object we are searching for.
5757 :return: An object implementing the given type or None if no such implementation is found.
5858 '''
59- raise NotImplementedError ()
59+ raise NotImplementedError () # pragma: no cover
6060
6161 def __call__ (self , cls : Type [object ]) -> Optional [object ]:
6262 return self .lookup (cls )
@@ -72,7 +72,7 @@ def lookup_result(self, cls: Type[object]) -> Result:
7272 :param cls: Class or type of the objects we are searching for.
7373 :return: A live object representing instances of that type.
7474 '''
75- raise NotImplementedError ()
75+ raise NotImplementedError () # pragma: no cover
7676
7777 def lookup_item (self , cls : Type [object ]) -> Optional [Item ]:
7878 '''
@@ -121,7 +121,7 @@ def get_display_name(self) -> str:
121121
122122 :return: The string suitable for presenting the object to a user.
123123 '''
124- raise NotImplementedError ()
124+ raise NotImplementedError () # pragma: no cover
125125
126126 @abstractmethod
127127 def get_id (self ) -> str :
@@ -135,7 +135,7 @@ def get_id(self) -> str:
135135
136136 :return: A string ID of the item.
137137 '''
138- raise NotImplementedError ()
138+ raise NotImplementedError () # pragma: no cover
139139
140140 @abstractmethod
141141 def get_instance (self ) -> Optional [object ]:
@@ -144,7 +144,7 @@ def get_instance(self) -> Optional[object]:
144144
145145 :return: The instance or None if the instance cannot be created.
146146 '''
147- raise NotImplementedError ()
147+ raise NotImplementedError () # pragma: no cover
148148
149149 @abstractmethod
150150 def get_type (self ) -> Type [object ]:
@@ -153,7 +153,7 @@ def get_type(self) -> Type[object]:
153153
154154 :return: The class of the item.
155155 '''
156- raise NotImplementedError ()
156+ raise NotImplementedError () # pragma: no cover
157157
158158 def __str__ (self ) -> str :
159159 '''Show ID for debugging.'''
@@ -182,7 +182,7 @@ def result_changed(self, result: Result) -> None: ...
182182
183183 :param listener: The listener to add.
184184 '''
185- raise NotImplementedError ()
185+ raise NotImplementedError () # pragma: no cover
186186
187187 @abstractmethod
188188 def remove_lookup_listener (self , listener : Callable [[Result ], None ]) -> None :
@@ -191,7 +191,7 @@ def remove_lookup_listener(self, listener: Callable[[Result], None]) -> None:
191191
192192 :param listener: The listener to remove.
193193 '''
194- raise NotImplementedError ()
194+ raise NotImplementedError () # pragma: no cover
195195
196196 @abstractmethod
197197 def all_classes (self ) -> AbstractSet [Type [object ]]:
@@ -203,7 +203,7 @@ def all_classes(self) -> AbstractSet[Type[object]]:
203203
204204 :return: Immutable set of class objects.
205205 '''
206- raise NotImplementedError ()
206+ raise NotImplementedError () # pragma: no cover
207207
208208 @abstractmethod
209209 def all_instances (self ) -> Sequence [object ]:
@@ -212,7 +212,7 @@ def all_instances(self) -> Sequence[object]:
212212
213213 :return: Immutable sequence of all instances.
214214 '''
215- raise NotImplementedError ()
215+ raise NotImplementedError () # pragma: no cover
216216
217217 @abstractmethod
218218 def all_items (self ) -> Sequence [Item ]:
@@ -223,7 +223,7 @@ def all_items(self) -> Sequence[Item]:
223223
224224 :return: Immutable sequence of Item.
225225 '''
226- raise NotImplementedError ()
226+ raise NotImplementedError () # pragma: no cover
227227
228228
229229class LookupProvider (ABC ):
@@ -239,4 +239,4 @@ def get_lookup(self) -> Lookup:
239239
240240 :return: Fully initialized lookup instance provided by this object
241241 '''
242- raise NotImplementedError ()
242+ raise NotImplementedError () # pragma: no cover
0 commit comments