Commit abc8708
authored
[ENG-5696] unwrap Var-typed annotations in @rx.memo signature (#5223)
Annotating the function arguments as `Var` might lead to more accurate type
hinting, but this breaks because the annotation was being unconditionally
wrapped in a Var.
With this change, if the annotation is already a Var, then the inner type is
used when constructing the dummy var that will be passed to the function for
evaluation.
Fix #52171 parent 6868b33 commit abc8708
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
1936 | 1937 | | |
1937 | 1938 | | |
1938 | 1939 | | |
1939 | | - | |
1940 | | - | |
| 1940 | + | |
| 1941 | + | |
1941 | 1942 | | |
1942 | 1943 | | |
1943 | 1944 | | |
| |||
0 commit comments