Improve memoized args (#771)

This commit is contained in:
Nikhil Rao 2023-04-03 18:22:43 -07:00 committed by GitHub
parent 8eea6ac822
commit bb29bd864d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,6 +509,8 @@ class CustomComponent(Component):
value = self._create_event_chain(key, value)
self.props[format.to_camel_case(key)] = value
continue
if not types._issubclass(type_, Var):
type_ = Var[type_]
type_ = types.get_args(type_)[0]
if types._issubclass(type_, Base):
try: