Skip to content
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

feat: auto-generate overloads for Client.wait_for #1017

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fe583fc
feat(codemod): autogen `Client.wait_for` overloads
shiftinv Apr 26, 2023
a7da890
feat: restrict ext.commands-specific overloads to bot classes
shiftinv Apr 26, 2023
2058a74
feat: add `wait_for` fallback for `event: str`
shiftinv Apr 27, 2023
0b19feb
test: add typing tests
shiftinv Apr 27, 2023
2e5d765
refactor: move thingy to a separate method
shiftinv Apr 27, 2023
8c29ed5
refactor: make codemod more extensible
shiftinv Apr 28, 2023
d896193
feat: add better error message for missing events
shiftinv Apr 28, 2023
cf276c7
chore: stuff
shiftinv Apr 28, 2023
f22006c
refactor: move event data to separate module
shiftinv Apr 30, 2023
624fc36
chore: make `EventData` kwarg-only
shiftinv Apr 30, 2023
0b5f68b
style: put EventData args on separate lines
shiftinv Apr 30, 2023
5875706
chore: move annotations into `EventData.__init__`
shiftinv Apr 30, 2023
61f85fb
docs: add changelog entry
shiftinv Jun 13, 2023
602b315
chore: rename `type_args` field to `arg_types`
shiftinv Jun 13, 2023
c5e4d33
Merge remote-tracking branch 'upstream/master' into feature/codemod-w…
shiftinv Aug 1, 2023
f80d199
fix: remove duplicate key from pyproject
shiftinv Aug 1, 2023
f92a984
fix: add codemod to new combined module
shiftinv Aug 1, 2023
fd56f51
Merge remote-tracking branch 'upstream/master' into feature/codemod-w…
shiftinv Sep 20, 2023
600af60
fix(typing): add generic bot parameter to interaction types
shiftinv Sep 20, 2023
496902a
feat(typing): add generic bot parameter to `Context` events
shiftinv Sep 20, 2023
2f04e8d
Merge remote-tracking branch 'upstream/master' into feature/codemod-w…
shiftinv Jan 2, 2024
5bba9e3
chore: remove unnecessary type-ignore
shiftinv Jan 2, 2024
625964b
Merge remote-tracking branch 'upstream/master' into feature/codemod-w…
shiftinv Feb 24, 2024
f0f44e9
feat: add new entitlement/presence events
shiftinv Feb 24, 2024
251f8ec
perf(codemod): use `CHECK_MARKER` instead of `tree.code`
shiftinv Feb 24, 2024
79b2e87
Merge remote-tracking branch 'upstream/master' into feature/codemod-w…
shiftinv Dec 11, 2024
f248d30
feat: add overloads for new events
shiftinv Dec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/1017.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add typing overloads to :meth:`Client.wait_for` for every :class:`Event` value, allowing for correct typing of the ``check`` parameter and the return value.
Loading
Loading