DecimalFactory

class app.util.helpers.decimal.DecimalFactory[source]

Bases: object

Factory function to create a Decimal class with specified context settings.

This is useful for financial calculations where precision is crucial.

Inheritance diagram of DecimalFactory

Inheritance Diagram for DecimalFactory

Methods

__init__([config])

apply_context()

context_manager()

__init__(config: DecimalConfig | None = None, **kwargs) None[source]
Parameters:

config (DecimalConfig | None)

Return type:

None

apply_context() None[source]
Return type:

None

context_manager() AbstractContextManager[__annotationlib_name_1__][source]
Return type:

AbstractContextManager[__annotationlib_name_1__]