Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
cattrs.preconf.pyyaml Namespace Reference

Classes

class  PyyamlConverter
 

Functions

 validate_date (v, _)
 
 configure_converter (BaseConverter converter)
 
PyyamlConverter make_converter (*Any args, **Any kwargs)
 

Variables

 T = TypeVar("T")
 

Detailed Description

Preconfigured converters for pyyaml.

Function Documentation

◆ configure_converter()

cattrs.preconf.pyyaml.configure_converter ( BaseConverter  converter)
Configure the converter for use with the pyyaml library.

* frozensets are serialized as lists
* string enums are converted into strings explicitly
* datetimes and dates are validated
* typed namedtuples are serialized as lists

.. versionchanged: 24.1.0
    Add support for typed namedtuples.