We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923de71 commit c085ca2Copy full SHA for c085ca2
web3/_utils/method_formatters.py
@@ -171,12 +171,9 @@ def type_aware_apply_formatters_to_dict(
171
if isinstance(value, BaseModel):
172
value = value.model_dump(by_alias=True)
173
174
- formatted_dict: Dict[str, Any] = apply_formatters_to_dict(formatters, dict(value))
175
- return (
176
- AttributeDict.recursive(formatted_dict)
177
- if is_attrdict(value)
178
- else formatted_dict
179
- )
+ formatted: Dict[str, Any]
+ formatted = apply_formatters_to_dict(formatters, value)
+ return AttributeDict.recursive(formatted) if is_attrdict(value) else formatted
180
181
182
def type_aware_apply_formatters_to_dict_keys_and_values(
0 commit comments