better code organisation and /restart visual bug fix, #127
Annotations
11 errors
Ruff Format
Process completed with exit code 1.
|
Pyright:
somnus/discord_provider.py#L733
Argument missing for parameter "url" (reportCallIssue)
|
Pyright:
somnus/discord_provider.py#L768
Argument of type "GuildChannel | Thread | PrivateChannel | None" cannot be assigned to parameter "channel" of type "TextChannel" in function "_inactivity_shutdown_verification"
Type "GuildChannel | Thread | PrivateChannel | None" is not assignable to type "TextChannel"
"CategoryChannel" is not assignable to "TextChannel" (reportArgumentType)
|
Pyright:
somnus/discord_provider.py#L773
Cannot access attribute "edit" for class "Literal[True]"
Attribute "edit" is unknown (reportAttributeAccessIssue)
|
Pyright:
somnus/discord_provider.py#L779
Cannot access attribute "edit" for class "Literal[True]"
Attribute "edit" is unknown (reportAttributeAccessIssue)
|
Pyright:
somnus/discord_provider.py#L784
Cannot access attribute "edit" for class "Literal[True]"
Attribute "edit" is unknown (reportAttributeAccessIssue)
|
Pyright:
somnus/language_handler.py#L37
Type "dict[Unknown, Unknown] | Unknown" is not assignable to return type "str"
Type "dict[Unknown, Unknown] | Unknown" is not assignable to type "str"
"dict[Unknown, Unknown]" is not assignable to "str" (reportReturnType)
|
Pyright:
somnus/language_handler.py#L44
"template" is possibly unbound (reportPossiblyUnboundVariable)
|
Pyright:
somnus/logic/stop.py#L92
Argument missing for parameter "shutdown" (reportCallIssue)
|
Pyright:
somnus/logic/world_selector.py#L93
Function with declared return type "WorldSelectorWorld" must return value on all code paths
"None" is not assignable to "WorldSelectorWorld" (reportReturnType)
|
Pyright
9 errors
|