Arbitrary arg access two levels deep for untyped handler (#4180)

* 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.

* py3.9 compat
This commit is contained in:
Masen Furer 2024-10-16 11:35:27 -07:00
parent c460040040
commit f8881c391d
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -1045,7 +1045,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