Arbitrary arg access two levels deep for untyped handler

Provide drop-in compatibility with existing component wrapping code
that was accessing attributes on the default handler arg type.
This commit is contained in:
Masen Furer 2024-10-15 14:11:03 -07:00
parent 2018be8e08
commit 43f19638d0
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -1041,7 +1041,8 @@ def resolve_annotation(annotations: dict[str, Any], arg_name: str):
deprecation_version="0.6.3",
removal_version="0.7.0",
)
return JavascriptInputEvent
# Allow arbitrary attribute access two levels deep until removed.
return dict[str, dict]
return annotation