Module Import alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareLt NameLoad Call NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Str Str FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A decimal rest_framework serializers foobar.wallet Money MoneyField N/A N/A serializers Field N/A N/A default_error_messages N/A non_negative not_a_number The amount must be positive. The amount must be a number. __init__ N/A N/A self N/A args kwargs N/A N/A N/A self non_negative N/A N/A kwargs pop non_negative False N/A N/A N/A N/A super __init__ args kwargs N/A to_representation N/A N/A self obj N/A N/A N/A N/A obj amount N/A to_internal_value N/A N/A self data N/A N/A N/A N/A N/A obj N/A Money data N/A N/A N/A N/A decimal InvalidOperation N/A N/A N/A N/A self fail not_a_number N/A N/A N/A obj N/A Money 0 N/A self non_negative N/A N/A N/A N/A self fail non_negative N/A N/A Money data N/A N/A IntEnumField N/A N/A serializers Field N/A N/A 
    The EnumField does not work well with DRF, when using it together
    with IntegerField in a serializer. This field takes care of properly
    converting the EnumField value to an integer.
     N/A default_error_messages N/A not_a_number The amount must be a number. to_representation N/A N/A self obj N/A N/A N/A N/A obj value N/A to_internal_value N/A N/A self data N/A N/A N/A N/A N/A N/A int data N/A N/A N/A ValueError N/A N/A N/A N/A self fail not_a_number N/A N/A