We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cefb0b + cd5ee76 commit e10a716Copy full SHA for e10a716
trio_typing/plugin.py
@@ -463,10 +463,11 @@ def start_soon(
463
+ ([None] * len(type_var_types))
464
+ callable_ty.arg_names[callable_args_idx + 1 :]
465
),
466
- variables=(
467
- list(callable_ty.variables)
468
- + cast(List[TypeVarLikeType], type_var_types)
469
- ),
+ # Note that we do *not* append `type_var_types` to
+ # `callable_ty.variables`. Even though `*type_var_types` are in our new
+ # `callable_ty`'s argument types, they are *not* type variables that get
+ # bound when our new `callable_ty` gets called. They get bound when the
470
+ # `expanded_fn` that references our new `callable_ty` gets called.
471
)
472
expanded_fns.append(
473
fn_type.copy_modified(
0 commit comments