get it right pyright

This commit is contained in:
Khaleel Al-Adhami 2024-11-21 11:40:59 -08:00
parent 0319f3d671
commit eb59d54a60

View File

@ -266,7 +266,7 @@ class Toaster(Component):
raise ValueError("Toast message or title or description must be provided.") raise ValueError("Toast message or title or description must be provided.")
if props: if props:
args = LiteralVar.create(ToastProps(component_name="rx.toast", **props)) # pyright: ignore [reportCallIssue] args = LiteralVar.create(ToastProps(component_name="rx.toast", **props)) # pyright: ignore [reportCallIssue, reportGeneralTypeIssues]
toast = toast_command.call(message, args) toast = toast_command.call(message, args)
else: else:
toast = toast_command.call(message) toast = toast_command.call(message)