refactor: Remove unused and duplicate imports
Summary
the type checker where not able to find discord.utils because of the http leading to no suggestion for everyfunction of utils like discord.utils.get etc etc
Information
- [x] This PR fixes an issue.
- [ ] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed).
- [x] This PR is not a code change (e.g. documentation, README, typehinting, examples, ...).
Checklist
- [x] I have searched the open pull requests for duplicates.
- [ ] If code changes were made then they have been tested.
- [x] I have updated the documentation to reflect the changes.
- [x] If
type: ignorecomments were used, a comment is also left explaining why. - [x] I have updated the changelog to include these changes.
This looks like an issue with your type checker, not pycord
This looks like an issue with your type checker, not pycord
well its still strange to have the discord utils being imported 2 times, and if its fix both why not merge it ;)
I'll do some more investigation, so it's not ready for the moment
so i did lot of testing (using different version of pylance etc) and seems that removing the double import just fix this all the time
from . import utils is in over 17 files. It makes no sense to only change it here. Besides, pyright has no issues locating the utility functions in my experience. I'd remove the unused import but keep the rest.
i'll check all around the lib for all unused import to removed them later (prob around end july)
i'll close this as everything will be remake in next, its a too big change for a minor version