Skip to content

fix: create_role, pass arguments as per payload #264

fix: create_role, pass arguments as per payload

fix: create_role, pass arguments as per payload #264

Triggered via pull request April 12, 2024 11:13
Status Failure
Total duration 40s
Artifacts

pyright.yml

on: pull_request
Matrix: pyright-type-checking
Matrix: pyright-type-completeness
Fit to window
Zoom out
Zoom in

Annotations

26 errors and 8 warnings
pyright-type-checking (3.11): revolt/server.py#L429
Could not access item in TypedDict   "role" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.11): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "data" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.11): revolt/server.py#L429
Could not access item in TypedDict   "id" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.11): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "role_id" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.11): 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)
pyright-type-checking (3.11): 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)
pyright-type-checking (3.11): 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)
pyright-type-checking (3.11)
7 errors
pyright-type-checking (3.9)
The job was canceled because "_3_11" failed.
pyright-type-checking (3.9): revolt/server.py#L429
Could not access item in TypedDict   "role" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.9): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "data" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.9): revolt/server.py#L429
Could not access item in TypedDict   "id" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.9): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "role_id" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.9): 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)
pyright-type-checking (3.9): 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)
pyright-type-checking (3.9): 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)
pyright-type-checking (3.9)
7 errors
pyright-type-checking (3.10)
The job was canceled because "_3_11" failed.
pyright-type-checking (3.10): revolt/server.py#L429
Could not access item in TypedDict   "role" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.10): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "data" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.10): revolt/server.py#L429
Could not access item in TypedDict   "id" is not a defined key in "Role" (reportGeneralTypeIssues)
pyright-type-checking (3.10): revolt/server.py#L429
Argument type is unknown   Argument corresponds to parameter "role_id" in function "__init__" (reportUnknownArgumentType)
pyright-type-checking (3.10): 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)
pyright-type-checking (3.10): 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)
pyright-type-checking (3.10): 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)
pyright-type-checking (3.10)
7 errors
pyright-type-completeness (3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright-type-completeness (3.10)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
pyright-type-completeness (3.9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright-type-completeness (3.9)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
pyright-type-checking (3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright-type-checking (3.11)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
pyright-type-completeness (3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-python@v2, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
pyright-type-completeness (3.11)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/