refactor(tooling): Switch to ruff-format for formatting. #6361
Annotations
11 errors and 1 warning
Run pyright (Windows)
Exit code 1
|
Run pyright (Linux):
disnake/guild.py#L627
Argument of type "int | None" cannot be assigned to parameter "channel_id" of type "int" in function "get_channel"
Type "int | None" cannot be assigned to type "int"
"None" is incompatible with "int" (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/invite.py#L439
Argument of type "PartialUser | User | Any" cannot be assigned to parameter "data" of type "User" in function "create_user"
Type "PartialUser | User | Any" cannot be assigned to type "User"
"bot" is missing from "type[PartialUser]"
"system" is missing from "type[PartialUser]"
"mfa_enabled" is missing from "type[PartialUser]"
"banner" is missing from "type[PartialUser]"
"accent_color" is missing from "type[PartialUser]"
"locale" is missing from "type[PartialUser]"
"verified" is missing from "type[PartialUser]"
... (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/invite.py#L463
Argument of type "PartialUser | User | Any" cannot be assigned to parameter "data" of type "User" in function "create_user"
Type "PartialUser | User | Any" cannot be assigned to type "User"
"bot" is missing from "type[PartialUser]"
"system" is missing from "type[PartialUser]"
"mfa_enabled" is missing from "type[PartialUser]"
"banner" is missing from "type[PartialUser]"
"accent_color" is missing from "type[PartialUser]"
"locale" is missing from "type[PartialUser]"
"verified" is missing from "type[PartialUser]"
... (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/invite.py#L440
Unnecessary "# type: ignore" comment
|
Run pyright (Linux):
disnake/invite.py#L464
Unnecessary "# type: ignore" comment
|
Run pyright (Linux):
disnake/member.py#L456
Argument of type "object" cannot be assigned to parameter "__string" of type "str" in function "intern"
"object" is incompatible with "str" (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/member.py#L457
Unnecessary "# type: ignore" comment
|
Run pyright (Linux):
disnake/state.py#L2273
Argument of type "int | None" cannot be assigned to parameter "application_id" of type "Snowflake" in function "get_global_commands" (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/state.py#L2285
Argument of type "int | None" cannot be assigned to parameter "application_id" of type "Snowflake" in function "upsert_global_command" (reportGeneralTypeIssues)
|
Run pyright (Linux):
disnake/state.py#L2296
Argument of type "int | None" cannot be assigned to parameter "application_id" of type "Snowflake" in function "edit_global_command" (reportGeneralTypeIssues)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading