-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Dropping non context #2617
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
Dropping non context #2617
Conversation
Also deleted the regex handler
The tests will fail. I have no clue about mypy (help pls) and my internet connection is too unstable rn to run pytest, so I am going to use the CI results to fix the remaining tests.
|
Now that the test suite actually ran through.
Apart from the mypy errors mentioned above which I do not understand, I also dont understand this pytest error, all others pass \o/
|
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.
Overall looks good! A few notes:
- Searching for
use_context
in the branch still gives a number of results - please make sure to remove those - I only skimmed the tests, but I'm sure they are fine :)
- Coverage decrease: Codecov marked nothing as untested that was tested before, IISC. I guess the decrease is just due to the fact that we're removing a lot of testing lines here so that the percentage of untested lines increases …
👍 |
@Bibo-Joshi True, good point |
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.
noticed that regexhandler
needs to be removed from telegram.ext.rst
too. Skimmed through the rest, seems fine.
Poolitzer: Grrr, I swear I searched for regexhandler in the project
I tried fixing the merge conflicts but I might have broken everything :( |
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 :)
# Conflicts: # tests/test_dispatcher.py # tests/test_persistence.py
b319bae
to
6959ae3
Compare
sorry to be bummer, but I think you were a little too thorough with your last doc change. IMO we should still state how the signature of the callback looks like, either by writing |
Hmm. Yeah I guess you are right, no way to know this without looking at the wiki. |
# Conflicts: # telegram/ext/handler.py # telegram/ext/jobqueue.py # tests/test_callbackcontext.py # tests/test_callbackqueryhandler.py # tests/test_chatmemberhandler.py # tests/test_inlinequeryhandler.py # tests/test_messagehandler.py # tests/test_pollanswerhandler.py # tests/test_pollhandler.py # tests/test_precheckoutqueryhandler.py # tests/test_regexhandler.py # tests/test_shippingqueryhandler.py # tests/test_stringcommandhandler.py # tests/test_stringregexhandler.py # tests/test_typehandler.py
This PR drops all non context based code. It also removes the regex handler (because it had non context code in it and just removing that one from the handler which was going to be removed anyway felt unnecessary).