fleche.call
Attributes
Classes
Represents a function call, capturing its name, arguments, and keyword arguments. |
|
Functions
|
Thin wrapper around |
Module Contents
- fleche.call.bind(func, args, kwargs, apply_defaults=False, partial=False)[source]
Thin wrapper around
inspect.Signature.bind()/bind_partial().- Parameters:
func – The callable whose signature to bind against.
args – Positional arguments.
kwargs – Keyword arguments.
apply_defaults – If
True, fill in default values for parameters that were not explicitly supplied.partial – If
True, usebind_partial(), which allows required arguments to be omitted (treated as wildcards).
- Returns:
inspect.BoundArguments.arguments— anOrderedDictcontaining the supplied (and, when requested, defaulted) values.
- class fleche.call.Call[source]
Represents a function call, capturing its name, arguments, and keyword arguments.
module and version can be optionally set to be included in the hash of the call. version should be a plain integer and monotonically increase. Each different version will completely change the hash of the call, invalidating previously cached results.
- class fleche.call.QueryCall[source]
-
- code_digest: fleche.digest.Digest | None = None[source]