Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.7k stars 458 forks source link

fix: inverted type hints in `CheckAnyFailure` #2502

Closed Paillat-dev closed 1 month ago

Paillat-dev commented 1 month ago

Summary

In CheckAnyFailure the type hints on the attributes were inverted. See https://github.com/Pycord-Development/pycord/blob/7b617da331b7f945a578baeb7febac289f2558ce/discord/ext/commands/core.py#L1926 for how the error is raised. The docstring was correct on the other hand so I did not change it.

Information

Checklist