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=None, **kwargs)[source]
Parameters:

config (DecimalConfig | None)

Return type:

None

apply_context()[source]
Return type:

None

context_manager()[source]