Skip to content

compose_call function doesn't declare a return Type #363

Open
@tjwilliams-bell-labs

Description

@tjwilliams-bell-labs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions