careful-librarian-39663
11/25/2024, 6:32 PMinstructions = Parameter(name="instructions",type=str)
And later I have a function expecting a string and try to use instructions
to pass to it, pyright says:
Argument of type "Parameter" cannot be assigned to parameter "param" of type "str" in function "myfunc"
square-wire-39606
12/04/2024, 8:54 PMcareful-librarian-39663
12/20/2024, 5:38 PMdry-beach-38304
12/20/2024, 7:45 PMcareful-librarian-39663
12/21/2024, 1:18 AMcast(str, instructions)
or "convert" directly when passing like str(instructions)
which is fine for now - just wanted to make sure I wasn't missing something - thanks!dry-beach-38304
12/21/2024, 1:23 AM