Repository navigation
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/3446/head:pr-3446
git checkout pr-3446This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3446/head |
|
6 basedpyright errors remain now, all of which being "Unreachable Code" which as we established isn't quite true, if users do user things |
EmbedThumbnail doesn't exist on the API, it's simply an EmbedImage
|
I let Claude generate a throwaway test suite (179 tests) that succeeded against master, and then ran it again on my code. The only failures really came from me missing that the lib uses |
|
@ToothyDev If could add some actually good and not throwaway tests on embeds.py that could be nice I guess. |
Co-authored by Claude as per PR description
Summary
This solves every type error / warning reported by bpr set to "all" in embeds.py. I had to be a bit creative with changing types at times (esp. Mapping) so tell me if this is all right. It's also untested so far, since I did change a bit of code as well, but functionality should be the same.
AI (Claude) was used to quickly generate a test suite for every embed feature, editing, (de)serialisation etc. which would have taken me forever; It passed against master and failed against my code, so I adjusted it to pass. Confident now that there are no leftover regressions
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.