-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Improve signature of shortcuts #2240
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Details in dev group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, looks good now. are we doing it like this?
Here is a (hopefully complete) list of all TG classes with shortcuts. Put your name behind it, when you start working on it. that way we can keep track of who does what. Don't forget to update the tests ;P
|
TimeOut-failures seem unrelated and I think I got all the shortcuts. Ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
First POC for #2238. It's probably good to discuss it first, before applying the changes to all the other shortcuts.
Some notes:
get_shortcut_kwargs
, which can be used in combination with pythons built-inlocals()
method. It will probably have to get a argumentlocal_vars_to_ignore
for some of the shortcuts, but we'll see.conftest.py
to reduce code duplication in the testsMessage._new_quote
instead of editingMessage._quote
for now, so the test won't fail immediately …when ready, closes #2238