Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
attr._make._Nothing Class Reference
Inheritance diagram for attr._make._Nothing:
Inheritance graph
[legend]
Collaboration diagram for attr._make._Nothing:
Collaboration graph
[legend]

Public Member Functions

 __repr__ (self)
 
 __bool__ (self)
 

Static Public Attributes

 NOTHING = enum.auto()
 

Detailed Description

Sentinel to indicate the lack of a value when `None` is ambiguous.

If extending attrs, you can use ``typing.Literal[NOTHING]`` to show
that a value may be ``NOTHING``.

.. versionchanged:: 21.1.0 ``bool(NOTHING)`` is now False.
.. versionchanged:: 22.2.0 ``NOTHING`` is now an ``enum.Enum`` variant.

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