Skip to content

update codeql version #254

update codeql version

update codeql version #254

Triggered via push October 2, 2024 07:02
Status Failure
Total duration 1m 30s
Artifacts

lint.yml

on: push
Matrix: check
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 16 warnings
check 3.10: cogs/dictionary.py#L619
"strip" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.10: cogs/dictionary.py#L670
"startswith" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.10: cogs/dictionary.py#L670
"endswith" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.10: cogs/dictionary.py#L671
Object of type "None" is not subscriptable (reportOptionalSubscript)
check 3.10: cogs/feeds.py#L48
"AsyncStream" is not a known attribute of module "tweepy.asynchronous" (reportAttributeAccessIssue)
check 3.10: cogs/feeds.py#L491
Argument of type "Unknown | list[FeedParserDict]" cannot be assigned to parameter "markup" of type "str | bytes | SupportsRead[str] | SupportsRead[bytes]" in function "__init__"   Type "Unknown | list[FeedParserDict]" is not assignable to type "str | bytes | SupportsRead[str] | SupportsRead[bytes]"     Type "list[FeedParserDict]" is not assignable to type "str | bytes | SupportsRead[str] | SupportsRead[bytes]"       "list[FeedParserDict]" is not assignable to "str"       "list[FeedParserDict]" is not assignable to "bytes"       "list[FeedParserDict]" is incompatible with protocol "SupportsRead[str]"         "read" is not present       "list[FeedParserDict]" is incompatible with protocol "SupportsRead[bytes]"         "read" is not present (reportArgumentType)
check 3.10: cogs/feeds.py#L521
No overloads for "find" match the provided arguments (reportCallIssue)
check 3.10: cogs/feeds.py#L521
Cannot access attribute "get" for class "object*"   Attribute "get" is unknown (reportAttributeAccessIssue)
check 3.10: cogs/feeds.py#L521
Argument of type "Unknown | list[FeedParserDict]" cannot be assigned to parameter "iterable" of type "AsyncIterable[T@find]" in function "find"   Type "Unknown | list[FeedParserDict]" is not assignable to type "AsyncIterable[T@find]"     "list[FeedParserDict]" is incompatible with protocol "AsyncIterable[T@find]"       "__aiter__" is not present (reportArgumentType)
check 3.10: cogs/fun.py#L379
Argument of type "*tuple[str | Message, str | None, str | None]" cannot be assigned to parameter "args" of type "*_Ts@run_in_executor" in function "run_in_executor"   Type "*tuple[str | Message, str | None, str | None]" is not assignable to type "*tuple[Unknown, str, str]"     "*tuple[str | Message, str | None, str | None]" is not assignable to "*tuple[Unknown, str, str]"       Tuple entry 2 is incorrect type         Type "str | None" is not assignable to type "str"           "None" is not assignable to "str" (reportArgumentType)
check 3.x: cogs/dictionary.py#L619
"strip" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.x: cogs/dictionary.py#L670
"startswith" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.x: cogs/dictionary.py#L670
"endswith" is not a known attribute of "None" (reportOptionalMemberAccess)
check 3.x: cogs/dictionary.py#L671
Object of type "None" is not subscriptable (reportOptionalSubscript)
check 3.x: cogs/feeds.py#L48
"AsyncStream" is not a known attribute of module "tweepy.asynchronous" (reportAttributeAccessIssue)
check 3.x: cogs/feeds.py#L491
Argument of type "Unknown | list[FeedParserDict]" cannot be assigned to parameter "markup" of type "str | bytes | SupportsRead[str] | SupportsRead[bytes]" in function "__init__"   Type "Unknown | list[FeedParserDict]" is not assignable to type "str | bytes | SupportsRead[str] | SupportsRead[bytes]"     Type "list[FeedParserDict]" is not assignable to type "str | bytes | SupportsRead[str] | SupportsRead[bytes]"       "list[FeedParserDict]" is not assignable to "str"       "list[FeedParserDict]" is not assignable to "bytes"       "list[FeedParserDict]" is incompatible with protocol "SupportsRead[str]"         "read" is not present       "list[FeedParserDict]" is incompatible with protocol "SupportsRead[bytes]"         "read" is not present (reportArgumentType)
check 3.x: cogs/feeds.py#L521
No overloads for "find" match the provided arguments (reportCallIssue)
check 3.x: cogs/feeds.py#L521
Cannot access attribute "get" for class "object*"   Attribute "get" is unknown (reportAttributeAccessIssue)
check 3.x: cogs/feeds.py#L521
Argument of type "Unknown | list[FeedParserDict]" cannot be assigned to parameter "iterable" of type "AsyncIterable[T@find]" in function "find"   Type "Unknown | list[FeedParserDict]" is not assignable to type "AsyncIterable[T@find]"     "list[FeedParserDict]" is incompatible with protocol "AsyncIterable[T@find]"       "__aiter__" is not present (reportArgumentType)
check 3.x: cogs/fun.py#L379
Argument of type "*tuple[str | Message, str | None, str | None]" cannot be assigned to parameter "args" of type "*_Ts@run_in_executor" in function "run_in_executor"   Type "*tuple[str | Message, str | None, str | None]" is not assignable to type "*tuple[Unknown, str, str]"     "*tuple[str | Message, str | None, str | None]" is not assignable to "*tuple[Unknown, str, str]"       Tuple entry 2 is incorrect type         Type "str | None" is not assignable to type "str"           "None" is not assignable to "str" (reportArgumentType)
check 3.10
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/setup-node@v3, jakebailey/pyright-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check 3.10: bot.py#L23
Import "config" could not be resolved from source (reportMissingModuleSource)
check 3.10: bot.py#L346
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.10: launcher.py#L29
Import "config" could not be resolved from source (reportMissingModuleSource)
check 3.10: launcher.py#L290
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.10: utils/converters.py#L146
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.10: cogs/admin.py#L393
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.10: cogs/lewd.py#L336
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.x
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/setup-node@v3, jakebailey/pyright-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
check 3.x: bot.py#L23
Import "config" could not be resolved from source (reportMissingModuleSource)
check 3.x: bot.py#L346
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.x: launcher.py#L29
Import "config" could not be resolved from source (reportMissingModuleSource)
check 3.x: launcher.py#L290
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.x: utils/converters.py#L146
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.x: cogs/admin.py#L393
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
check 3.x: cogs/lewd.py#L336
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)