Add support for Interaction Callback Resource #4181
Annotations
11 errors and 4 warnings
check 3.x:
discord/interactions.py#L690
Could not access item in TypedDict
"id" is not a defined key in "InteractionCallback" (reportGeneralTypeIssues)
|
check 3.x:
discord/interactions.py#L692
Argument of type "InteractionCallback" cannot be assigned to parameter "data" of type "InteractionCallbackResponse" in function "_update"
"id" is missing from "type[InteractionCallback]"
"type" is missing from "type[InteractionCallback]"
"activity_instance_id" is missing from "type[InteractionCallback]"
"response_message_id" is missing from "type[InteractionCallback]"
"response_message_loading" is missing from "type[InteractionCallback]"
"response_message_ephemeral" is missing from "type[InteractionCallback]" (reportArgumentType)
|
check 3.x:
discord/interactions.py#L759
Cannot access member "response" for type "InteractionCallbackResponse[Client]"
Member "response" is unknown (reportAttributeAccessIssue)
|
check 3.x:
discord/interactions.py#L795
Cannot access member "id" for type "InteractionCallbackResponse[ClientT@InteractionCallbackResponse]*"
Member "id" is unknown (reportAttributeAccessIssue)
|
check 3.x:
discord/interactions.py#L795
Cannot access member "interaction_type" for type "InteractionCallbackResponse[ClientT@InteractionCallbackResponse]*"
Member "interaction_type" is unknown (reportAttributeAccessIssue)
|
check 3.x:
discord/interactions.py#L795
Cannot access member "callback_type" for type "InteractionCallbackResponse[ClientT@InteractionCallbackResponse]*"
Member "callback_type" is unknown (reportAttributeAccessIssue)
|
check 3.x:
discord/interactions.py#L800
Argument of type "InteractionCallback" cannot be assigned to parameter "data" of type "InteractionCallbackResponse" in function "_update"
"id" is missing from "type[InteractionCallback]"
"type" is missing from "type[InteractionCallback]"
"activity_instance_id" is missing from "type[InteractionCallback]"
"response_message_id" is missing from "type[InteractionCallback]"
"response_message_loading" is missing from "type[InteractionCallback]"
"response_message_ephemeral" is missing from "type[InteractionCallback]" (reportArgumentType)
|
check 3.x:
discord/interactions.py#L802
Argument of type "InteractionCallbackResource | dict[Any, Any]" cannot be assigned to parameter "data" of type "InteractionCallbackResource" in function "_update"
Type "InteractionCallbackResource | dict[Any, Any]" cannot be assigned to type "InteractionCallbackResource"
"dict[Any, Any]" is incompatible with "InteractionCallbackResource" (reportArgumentType)
|
check 3.x:
discord/interactions.py#L1204
Overloaded implementation is not consistent with signature of overload 1
Function return type "Coroutine[Any, Any, InteractionCallbackResponse[ClientT@InteractionResponse]]" is incompatible with type "Coroutine[Any, Any, InteractionCallback | None]"
"Coroutine[Any, Any, InteractionCallbackResponse[ClientT@InteractionResponse]]" is incompatible with "Coroutine[Any, Any, InteractionCallback | None]"
Type parameter "_ReturnT_co@Coroutine" is covariant, but "InteractionCallbackResponse[ClientT@InteractionResponse]" is not a subtype of "InteractionCallback | None"
Type "InteractionCallbackResponse[ClientT@InteractionResponse]" cannot be assigned to type "InteractionCallback | None"
"InteractionCallbackResponse[ClientT@InteractionResponse]" is incompatible with "InteractionCallback"
"InteractionCallbackResponse[ClientT@InteractionResponse]" is incompatible with "None" (reportInconsistentOverload)
|
check 3.x:
discord/interactions.py#L1216
Expected no type arguments for class "InteractionCallback" (reportInvalidTypeArguments)
|
check 3.8
Exit code 1
|
check 3.x
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
check 3.x:
discord/message.py#L868
Unnecessary "# type: ignore" comment
|
check 3.x:
discord/utils.py#L667
Unnecessary "# type: ignore" comment
|
check 3.8
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|