![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Functions | |
| _split_what (what) | |
| include (*what) | |
| exclude (*what) | |
Commonly useful filters for `attrs.asdict` and `attrs.astuple`.
|
protected |
Returns a tuple of `frozenset`s of classes and attributes.
| attr.filters.exclude | ( | * | what | ) |
Create a filter that does **not** allow *what*.
Args:
what (list[type, str, attrs.Attribute]):
What to exclude. Can be a type, a name, or an attribute.
Returns:
Callable:
A callable that can be passed to `attrs.asdict`'s and
`attrs.astuple`'s *filter* argument.
.. versionchanged:: 23.3.0 Accept field name string as input argument
| attr.filters.include | ( | * | what | ) |
Create a filter that only allows *what*.
Args:
what (list[type, str, attrs.Attribute]):
What to include. Can be a type, a name, or an attribute.
Returns:
Callable:
A callable that can be passed to `attrs.asdict`'s and
`attrs.astuple`'s *filter* argument.
.. versionchanged:: 23.1.0 Accept strings with field names.