-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 🐛 Fix duplicate bridge cmds in default help cmd #2656
base: master
Are you sure you want to change the base?
fix: 🐛 Fix duplicate bridge cmds in default help cmd #2656
Conversation
Please don't merge this yet I thought of something I want to test first. |
Ok I fixed a small issue there. |
In any case, the code for this help command is reeeally messed up ngl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like me fr
@@ -550,7 +551,9 @@ def subcommand_not_found(self, command, string): | |||
) | |||
return f'Command "{command.qualified_name}" has no subcommands.' | |||
|
|||
async def filter_commands(self, commands, *, sort=False, key=None): | |||
async def filter_commands( | |||
self, commands, *, sort=False, key=None, exclude: tuple[Any] | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why tuple instead of set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unpack not possible with sets
Summary
Fixes: #2306
Closes: #2415
Alternative to: #2415 (stale imo)
If you prefer waiting for #2415 I don't mind, just made a quick fix here because that pr seemed dead.
Information
examples, ...).
Checklist
type: ignore
comments were used, a comment is also left explaining why.