fix /purge breaking when called with no arguments #247
Annotations
10 errors and 8 warnings
cogs/dictionary.py#L619
"strip" is not a known attribute of "None" (reportOptionalMemberAccess)
|
cogs/dictionary.py#L670
"startswith" is not a known attribute of "None" (reportOptionalMemberAccess)
|
cogs/dictionary.py#L670
"endswith" is not a known attribute of "None" (reportOptionalMemberAccess)
|
cogs/dictionary.py#L671
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
cogs/feeds.py#L48
"AsyncStream" is not a known attribute of module "tweepy.asynchronous" (reportAttributeAccessIssue)
|
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__" (reportArgumentType)
|
cogs/feeds.py#L521
No overloads for "find" match the provided arguments (reportCallIssue)
|
cogs/feeds.py#L521
Cannot access attribute "get" for class "object*"
Attribute "get" is unknown (reportAttributeAccessIssue)
|
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 incompatible with type "AsyncIterable[T@find]"
"list[FeedParserDict]" is incompatible with protocol "AsyncIterable[T@find]"
"__aiter__" is not present (reportArgumentType)
|
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 incompatible with type "*tuple[Unknown, str, str]"
"*tuple[str | Message, str | None, str | None]" is incompatible with "*tuple[Unknown, str, str]"
Tuple entry 2 is incorrect type
Type "str | None" is incompatible with type "str"
"None" is incompatible with "str" (reportArgumentType)
|
The following actions uses Node.js version which is deprecated 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/
|
bot.py#L23
Import "config" could not be resolved from source (reportMissingModuleSource)
|
bot.py#L346
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
launcher.py#L29
Import "config" could not be resolved from source (reportMissingModuleSource)
|
launcher.py#L290
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
utils/converters.py#L146
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
cogs/admin.py#L393
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
cogs/lewd.py#L336
Unnecessary "# type: ignore" comment (reportUnnecessaryTypeIgnoreComment)
|
This job failed
Loading