get_precision_context#

composer.core.get_precision_context(precision)[source]#

Returns a context manager to automatically cast to a specific precision.

Parameters

precision (str | Precision) โ€“ Precision for the context