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/ |
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Overall looks good! A few notes:
- Searching for
use_contextin 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 |
|
I tried fixing the merge conflicts but I might have broken everything :( |
# 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).