|
@ -375,19 +375,14 @@ def encode_dict( |
|
|
if key not in allowed_keys: |
|
|
if key not in allowed_keys: |
|
|
continue |
|
|
continue |
|
|
|
|
|
|
|
|
# use type() in, instead of isinstance |
|
|
encoded_key = encode_value( |
|
|
# we don't want to allow subclasses, they should be encoded still |
|
|
key, |
|
|
if type(key) in primitive_types: |
|
|
by_alias=by_alias, |
|
|
encoded_key = key |
|
|
exclude_unset=exclude_unset, |
|
|
else: |
|
|
exclude_none=exclude_none, |
|
|
encoded_key = encode_value( |
|
|
custom_encoder=custom_encoder, |
|
|
key, |
|
|
sqlalchemy_safe=sqlalchemy_safe, |
|
|
by_alias=by_alias, |
|
|
) |
|
|
exclude_unset=exclude_unset, |
|
|
|
|
|
exclude_none=exclude_none, |
|
|
|
|
|
custom_encoder=custom_encoder, |
|
|
|
|
|
sqlalchemy_safe=sqlalchemy_safe, |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
encoded_value = encode_value( |
|
|
encoded_value = encode_value( |
|
|
value, |
|
|
value, |
|
|