.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.enginelib.traits.EngineTraitsEncoder Class Reference
+ Inheritance diagram for searx.enginelib.traits.EngineTraitsEncoder:
+ Collaboration diagram for searx.enginelib.traits.EngineTraitsEncoder:

Public Member Functions

 default (self, o)
 

Detailed Description

Encodes :class:`EngineTraits` to a serializable object, see
:class:`json.JSONEncoder`.

Definition at line 27 of file traits.py.

Member Function Documentation

◆ default()

searx.enginelib.traits.EngineTraitsEncoder.default ( self,
o )
Return dictionary of a :class:`EngineTraits` object.

Definition at line 31 of file traits.py.

31 def default(self, o):
32 """Return dictionary of a :class:`EngineTraits` object."""
33 if isinstance(o, EngineTraits):
34 return o.__dict__
35 return super().default(o)
36
37
38@dataclasses.dataclass

References default().

Referenced by default().

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

The documentation for this class was generated from the following file: