You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TrapDrap opened this issue
May 10, 2023
· 1 comment
Labels
help wantedAnyone is free to help, the issue shouldn't be *too* hard.p: lowPriority: low - not important to be worked ont: typingType: typing - the types doesn't seem quite right
Both should be typed correctly, and would not produce a red highlighted error.
Actual Results
@something.group() is highlighted.
(note the name of the Cog is config)
Argument of type "(self: Self@config, ctx: Unknown, arg: Unknown) -> Coroutine[Any, Any, None]" cannot be assigned to parameter of type "(Context[Unknown], **P@group) -> Coro[Any]"
Type "(self: Self@config, ctx: Unknown, arg: Unknown) -> Coroutine[Any, Any, None]" cannot be assigned to type "(Context[Unknown], **P@group) -> Coro[Any]"
Parameter 1: type "Context[Unknown]" cannot be assigned to type "Self@config"
"Context[Unknown]" is incompatible with "config"
Intents
N/A
System Information
v2.5.0a with ooliver's corrected typing for @commands.command(), @commands.group() and @bot.command()
Checklist
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
Additional Context
The error is located at nextcord/ext/commands/core.py under line 1394
I wasn't able to figure out how to fix it though.
The text was updated successfully, but these errors were encountered:
This issue still persists on the currently latest commit. I did find a temporary solution, which involves setting the cls parameter to commands.Group.
EmmmaTech
added
p: low
Priority: low - not important to be worked on
t: typing
Type: typing - the types doesn't seem quite right
help wanted
Anyone is free to help, the issue shouldn't be *too* hard.
and removed
t: unconfirmed bug
Type: bug - needs testing on if this is an issue
labels
Sep 20, 2023
help wantedAnyone is free to help, the issue shouldn't be *too* hard.p: lowPriority: low - not important to be worked ont: typingType: typing - the types doesn't seem quite right
Summary
command Groups created under another command Group typing is incorrect
Reproduction Steps
This change is after ooliver's fix for the previous typing correction, which has not been pushed to main lib yet
https://discord.com/channels/881118111967883295/1087201133421936650
Minimal Reproducible Code
Expected Results
Both should be typed correctly, and would not produce a red highlighted error.
Actual Results
@something.group() is highlighted.
(note the name of the Cog is config)
Intents
N/A
System Information
v2.5.0a with ooliver's corrected typing for @commands.command(), @commands.group() and @bot.command()
Checklist
Additional Context
The error is located at
nextcord/ext/commands/core.py
underline 1394
I wasn't able to figure out how to fix it though.
The text was updated successfully, but these errors were encountered: