fix: create_role, pass arguments as per payload #264
Annotations
9 errors
|
Run jakebailey/pyright-action@v1:
revolt/server.py#L429
Could not access item in TypedDict
"role" is not a defined key in "Role" (reportGeneralTypeIssues)
|
Run jakebailey/pyright-action@v1:
revolt/server.py#L429
Argument type is unknown
Argument corresponds to parameter "data" in function "__init__" (reportUnknownArgumentType)
|
Run jakebailey/pyright-action@v1:
revolt/server.py#L429
Could not access item in TypedDict
"id" is not a defined key in "Role" (reportGeneralTypeIssues)
|
Run jakebailey/pyright-action@v1:
revolt/server.py#L429
Argument type is unknown
Argument corresponds to parameter "role_id" in function "__init__" (reportUnknownArgumentType)
|
Run jakebailey/pyright-action@v1:
revolt/ext/commands/cog.py#L61
Cannot assign member "cog" for type "Command[CommandsClient]"
Type "Self@Cog[ClientT_D@Cog]" cannot be assigned to type "Cog[CommandsClient] | None"
"Cog[ClientT_D@Cog]*" is incompatible with "Cog[CommandsClient]"
Type parameter "ClientT_D@Cog" is invariant, but "ClientT_D@Cog" is not the same as "CommandsClient"
"Cog[ClientT_D@Cog]*" is incompatible with "None" (reportAttributeAccessIssue)
|
Run jakebailey/pyright-action@v1:
revolt/ext/commands/cog.py#L64
Argument of type "Command[CommandsClient]" cannot be assigned to parameter "command" of type "Command[ClientT_D@Cog]" in function "add_command"
"Command[CommandsClient]" is incompatible with "Command[ClientT_D@Cog]"
Type parameter "ClientT_Co_D@Command" is covariant, but "CommandsClient" is not a subtype of "ClientT_D@Cog"
Type "CommandsClient" cannot be assigned to type "ClientT_D@Cog" (reportArgumentType)
|
Run jakebailey/pyright-action@v1:
revolt/ext/commands/cog.py#L85
Expression of type "list[Command[CommandsClient]]" cannot be assigned to return type "list[Command[ClientT_D@Cog]]"
"list[Command[CommandsClient]]" is incompatible with "list[Command[ClientT_D@Cog]]"
Type parameter "_T@list" is invariant, but "Command[CommandsClient]" is not the same as "Command[ClientT_D@Cog]"
Consider switching from "list" to "Sequence" which is covariant (reportReturnType)
|
Run jakebailey/pyright-action@v1
7 errors
|
Loading