FilterCapability#
- class scikitplot.corpus.FilterCapability(supported=frozenset({}), emulated=frozenset({}), rejected=frozenset({}))[source]#
A backend’s declared answer for the operators in one expression.
- Parameters:
- supportedfrozenset of str
Executed natively.
- emulatedfrozenset of str
Executed by a fallback path with equivalent semantics.
- rejectedfrozenset of str
Refused; the query does not run.
- Parameters:
Notes
Developer. Every operator in an expression must appear in exactly one set.
for_expressionenforces that, so “silently ignored” is not a reachable state rather than merely a discouraged one.- classmethod for_expression(expression, *, native=(), emulated=())[source]#
Classify every operator in
expression.- Parameters:
- expressionFilter
Filter
- nativeiterable of str, optional
Operators this backend executes natively.
- emulatediterable of str, optional
Operators it answers by a fallback path.
- Returns:
- FilterCapability
Anything neither native nor emulated is
rejected– the default is refusal, never silent omission.
- Parameters:
- Return type: