.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.botdetection.config.FALSE Class Reference

Public Member Functions

 __init__ (self, str msg)
 __bool__ (self)
 __str__ (self)

Public Attributes

 msg = msg

Static Private Attributes

 __repr__ = __str__

Detailed Description

Class of ``False`` singleton

Definition at line 38 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

searx.botdetection.config.FALSE.__init__ ( self,
str msg )

Definition at line 42 of file config.py.

42 def __init__(self, msg: str):
43 self.msg = msg
44

Member Function Documentation

◆ __bool__()

searx.botdetection.config.FALSE.__bool__ ( self)

Definition at line 45 of file config.py.

45 def __bool__(self):
46 return False
47

◆ __str__()

searx.botdetection.config.FALSE.__str__ ( self)

Definition at line 48 of file config.py.

48 def __str__(self):
49 return self.msg
50

References msg.

Member Data Documentation

◆ __repr__

searx.botdetection.config.FALSE.__repr__ = __str__
staticprivate

Definition at line 51 of file config.py.

◆ msg

searx.botdetection.config.FALSE.msg = msg

Definition at line 43 of file config.py.

Referenced by __str__().


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