Respect the trade cooldown option in the settings #730
Annotations
11 warnings
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v2, actions/setup-python@v5, astral-sh/setup-uv@v5, jakebailey/pyright-action@v2. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Check pyright:
ballsdex/packages/admin/cog.py#L111
Method "cog_app_command_error" overrides class "Cog" in an incompatible manner
Parameter 2 type mismatch: base parameter is type "Interaction[Client]", override parameter is type "Interaction[BallsDexBot]"
"Interaction[Client]" is not assignable to "Interaction[BallsDexBot]"
Type parameter "ClientT@Interaction" is covariant, but "Client" is not a subtype of "BallsDexBot"
"Client" is not assignable to "BallsDexBot" (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/packages/admin/cog.py#L108
Method "cog_check" overrides class "Cog" in an incompatible manner
Parameter 2 type mismatch: base parameter is type "Context[BotT@cog_check]", override parameter is type "Context[BallsDexBot]"
Return type mismatch: base method returns type "bool", override returns type "CoroutineType[Any, Any, bool]"
"Context[BotT@cog_check]" is not assignable to "Context[BallsDexBot]"
Type parameter "BotT@Context" is covariant, but "BotT@cog_check" is not a subtype of "BallsDexBot"
Type "Bot* | AutoShardedBot*" is not assignable to type "BallsDexBot"
"AutoShardedBot*" is not assignable to "BallsDexBot"
"CoroutineType[Any, Any, bool]" is not assignable to "bool" (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/core/utils/transformers.py#L260
Method "get_options" overrides class "ModelTransformer" in an incompatible manner
Return type mismatch: base method returns type "CoroutineType[Any, Any, list[Choice[int]]]", override returns type "CoroutineType[Any, Any, list[Choice[str]]]"
"CoroutineType[Any, Any, list[Choice[str]]]" is not assignable to "CoroutineType[Any, Any, list[Choice[int]]]"
Type parameter "_ReturnT_nd_co@CoroutineType" is covariant, but "list[Choice[str]]" is not a subtype of "list[Choice[int]]"
"list[Choice[str]]" is not assignable to "list[Choice[int]]"
Type parameter "_T@list" is invariant, but "Choice[str]" is not the same as "Choice[int]"
Consider switching from "list" to "Sequence" which is covariant (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/core/utils/transformers.py#L148
Method "convert" overrides class "Converter" in an incompatible manner
Parameter 2 type mismatch: base parameter is type "Context[BotT@convert]", override parameter is type "Context[BallsDexBot]"
"Context[BotT@convert]" is not assignable to "Context[BallsDexBot]"
Type parameter "BotT@Context" is covariant, but "BotT@convert" is not a subtype of "BallsDexBot"
Type "Bot* | AutoShardedBot*" is not assignable to type "BallsDexBot"
"AutoShardedBot*" is not assignable to "BallsDexBot" (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/core/utils/transformers.py#L135
Method "transform" overrides class "Transformer" in an incompatible manner
Parameter 2 type mismatch: base parameter is type "Interaction[Client]", override parameter is type "Interaction[BallsDexBot]"
"Interaction[Client]" is not assignable to "Interaction[BallsDexBot]"
Type parameter "ClientT@Interaction" is covariant, but "Client" is not a subtype of "BallsDexBot"
"Client" is not assignable to "BallsDexBot" (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/core/utils/transformers.py#L124
Method "autocomplete" overrides class "Transformer" in an incompatible manner
Parameter 2 type mismatch: base parameter is type "Interaction[Client]", override parameter is type "Interaction[BallsDexBot]"
Parameter 3 type mismatch: base parameter is type "int | float | str", override parameter is type "str"
Return type mismatch: base method returns type "CoroutineType[Any, Any, List[Choice[str | int | float]]]", override returns type "CoroutineType[Any, Any, list[Choice[int]]]"
"Interaction[Client]" is not assignable to "Interaction[BallsDexBot]"
Type parameter "ClientT@Interaction" is covariant, but "Client" is not a subtype of "BallsDexBot"
"Client" is not assignable to "BallsDexBot"
Type "int | float | str" is not assignable to type "str"
"float" is not assignable to "str"
... (reportIncompatibleMethodOverride)
|
|
Check pyright:
ballsdex/core/bot.py#L220
"owner_ids" overrides symbol of same name in class "BotBase"
Variable is mutable so its type is invariant
Override type "set[int]" is not the same as base type "Collection[int] | None" (reportIncompatibleVariableOverride)
|
|
Check pyright:
admin_panel/bd_models/models.py#L338
Method "save" overrides class "Model" in an incompatible manner
Positional parameter count mismatch; base method has 5, but override has 2 (reportIncompatibleMethodOverride)
|
|
Check pyright:
admin_panel/bd_models/admin/special.py#L47
Method "formfield_for_dbfield" overrides class "BaseModelAdmin" in an incompatible manner
Return type mismatch: base method returns type "Field | None", override returns type "Field[Any, Any] | None"
Type "Field[Any, Any] | None" is not assignable to type "Field | None"
Type "Field[Any, Any]" is not assignable to type "Field | None"
"Field[Any, Any]" is not assignable to "Field"
"Field[Any, Any]" is not assignable to "None" (reportIncompatibleMethodOverride)
|
|
Check pyright:
admin_panel/bd_models/admin/ball.py#L117
Method "formfield_for_dbfield" overrides class "BaseModelAdmin" in an incompatible manner
Return type mismatch: base method returns type "Field | None", override returns type "Field[Any, Any] | None"
Type "Field[Any, Any] | None" is not assignable to type "Field | None"
Type "Field[Any, Any]" is not assignable to type "Field | None"
"Field[Any, Any]" is not assignable to "Field"
"Field[Any, Any]" is not assignable to "None" (reportIncompatibleMethodOverride)
|
Loading