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

Public Member Functions

 __reduce__ (self, _none_constructor=type(None), _args=())
 

Detailed Description

An integer subclass that pickles / copies as None

This is used for non-slots classes with ``cache_hash=True``, to avoid
serializing a potentially (even likely) invalid hash value. Since `None`
is the default value for uncalculated hashes, whenever this is copied,
the copy's value for the hash should automatically reset.

See GH #613 for more details.

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