You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Invalid class_name passed for prop {type(self).__name__}.class_name, expected type str, got value {c._js_expr} of type {c._var_type}."
612
+
)
613
+
has_var=True
614
+
else:
615
+
raiseTypeError(
616
+
f"Invalid class_name passed for prop {type(self).__name__}.class_name, expected type str, got value {c} of type {type(c)}."
617
+
)
618
+
ifhas_var:
602
619
kwargs["class_name"] =LiteralArrayVar.create(
603
620
class_name, _var_type=list[str]
604
621
).join(" ")
605
622
else:
606
623
kwargs["class_name"] =" ".join(class_name)
607
-
624
+
elif (
625
+
isinstance(class_name, Var)
626
+
andnotisinstance(class_name, StringVar)
627
+
andnotissubclass(class_name._var_type, str)
628
+
):
629
+
raiseTypeError(
630
+
f"Invalid class_name passed for prop {type(self).__name__}.class_name, expected type str, got value {class_name._js_expr} of type {class_name._var_type}."
0 commit comments