bruh i used i twice
This commit is contained in:
parent
cbdaca7596
commit
40e3de9e9e
@ -1104,7 +1104,9 @@ def call_event_handler(
|
||||
if event_spec_return_types:
|
||||
failures = []
|
||||
|
||||
for i, event_spec_return_type in enumerate(event_spec_return_types):
|
||||
for event_spec_index, event_spec_return_type in enumerate(
|
||||
event_spec_return_types
|
||||
):
|
||||
args = get_args(event_spec_return_type)
|
||||
|
||||
args_types_without_vars = [
|
||||
@ -1146,7 +1148,7 @@ def call_event_handler(
|
||||
break
|
||||
|
||||
if not failed_type_check:
|
||||
if i:
|
||||
if event_spec_index:
|
||||
console.warn(
|
||||
f"Event handler {key} expects {args_types_without_vars} but got {type_hints_of_provided_callback} as annotated in {event_handler.fn.__qualname__} instead. "
|
||||
f"This may lead to unexpected behavior but is intentionally ignored for {key}."
|
||||
|
Loading…
Reference in New Issue
Block a user