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

Remove checks for None on assignement for opt args #1600

Merged
merged 2 commits into from
Nov 23, 2019

Conversation

Bibo-Joshi
Copy link
Member

@Bibo-Joshi Bibo-Joshi commented Nov 7, 2019

As pointed out by @jh0ker in the dev-chat, the checks

if arg:
    self.arg = arg

are not necessary, since TelegramObject.to_dict() ignores None anyway.

Also Closes #1594

@tsnoam
Copy link
Member

tsnoam commented Nov 15, 2019

workflow fails on py3.5 & py3.7 on windows. need to investigate.

@tsnoam
Copy link
Member

tsnoam commented Nov 15, 2019

this PR can be moved to milestone 12.4 if fixing the CI will take too long.

@Bibo-Joshi
Copy link
Member Author

Will try to investigate tomorrow

@Bibo-Joshi
Copy link
Member Author

Tests succeed after restart. All I saw was something about set_webhook_info which should be unrelated ...

@tsnoam tsnoam merged commit a5ba64b into master Nov 23, 2019
@tsnoam tsnoam deleted the simple-optional-assignements branch November 23, 2019 16:05
This was referenced Jan 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] InlineKeyboardButton with switch_inline_query='' doesn't work
3 participants