Just a little note: Use or
instead of multiple if
branches with a same result :)
#2846
david-shiko
started this conversation in
Feature Suggestions
Replies: 1 comment
-
It was like that before in fact and was changed in #2131 :) IIRC it was mainly to make it more readable, but it could actually have something to do with one of our pre-commit hooks complaining after the settings where tightened.
In the end IMO it's also a bit a matter of taste 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
python-telegram-bot/telegram/ext/conversationhandler.py
Line 522 in ade1529
Example:
Or
elif
also more "pythonic way"Beta Was this translation helpful? Give feedback.
All reactions