.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.result_types.ResultList Class Reference
Inheritance diagram for searx.result_types.ResultList:
Collaboration diagram for searx.result_types.ResultList:

Classes

class  types

Public Member Functions

 __init__ (self)
 add (self, Result|LegacyResult result)

Detailed Description

Base class of all result lists (abstract).

Definition at line 27 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

searx.result_types.ResultList.__init__ ( self)

Definition at line 43 of file __init__.py.

43 def __init__(self):
44 # pylint: disable=useless-parent-delegation
45 super().__init__()
46

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ add()

searx.result_types.ResultList.add ( self,
Result | LegacyResult result )
Add a :py:`Result` item to the result list.

Definition at line 47 of file __init__.py.

47 def add(self, result: Result | LegacyResult):
48 """Add a :py:`Result` item to the result list."""
49 self.append(result)
50
51

The documentation for this class was generated from the following file:
  • /home/andrew/Documents/code/public/searxng/searx/result_types/__init__.py