Fix checks not properly handling Group commands type
Description of the changes
This PR propose to add the type Group to the type variable used in Requires.get_decorator (Which is used by Red's checks).
This was made as creating a command group, in addition of one of Red's provided check, would alert Pylance of incorrect type, expecting type Command only.
Before
After
The correct type is now reflected.
Same issue and fix apply for @commands.hybrid_group
Have the changes in this PR been tested?
Yes
I would be interested to know if swapping the order of your checks on the group would make the error go away - put the is_owner below the @commands.group().
It does, but raise another error that I believe is rather more of an issue from discord.py.
This issue (This screenshot) apply to anything as long as @commands.group()/.command() is not the last decorator as far as I've seen. Some other combination could work.