py-substrate-interface icon indicating copy to clipboard operation
py-substrate-interface copied to clipboard

compose_call function doesn't declare a return Type

Open tjwilliams-bell-labs opened this issue 1 year ago • 1 comments

Following the example code in the "Quick Usage" section of the README.md to create a call using the "compose_call()" function then passing the result to the "call" parameter for "create_signed_extrinsic()" I get a warning from Pylance (Vs Code IDE) that the "call" parameter is expecting a type "GenericCall" and getting a type. of "ScaleType | Unknown". The "compose_call()" does not have a return type declared for the function, so it is using the "ScaleType | Unknown" which is what it appears to be getting internally from the "call.encode()" in the function.

The docstring for the function says the return for the "compose_call()" is a GenericCall (which I was expecting) but the actual function signature does not specify a return type.

tjwilliams-bell-labs avatar Nov 17 '23 23:11 tjwilliams-bell-labs