-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Use timedelta
to represent time periods in classes
#4750
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
base: master
Are you sure you want to change the base?
Conversation
- [x] `ChatFullInfo.slow_mode_delay`. - [x] `ChatFullInfo.message_auto_delete_time`.
One thought before i proceed with the rest of the classes.
why deprecate class args, i think it would be convenient to allow passing either |
Hey, thanks for getting started so quickly:) |
Aha okay. but would it still be necessary to issue a separate deprecation warning in the init methods as was outlined in #4575 (comment) (very helpful summary btw 😄 ). one is already being issued on property access. |
I would say, so yes. Attribute access and passing the parameter are two independent operations, both of which will be affected :) |
I see! I was thinking more from the perspective that
whom are we intending to warn then anyways I did include both warnings for completeness and the cases where users are manually initializing objects |
Second part of #4575.
Affected classes (basicaly anywhere "in seconds" appears in api docs)
Check-list for PRs
.. versionadded:: NEXT.VERSION
,.. versionchanged:: NEXT.VERSION
,.. deprecated:: NEXT.VERSION
or.. versionremoved:: NEXT.VERSION
to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)CSI standard <https://standards.mousepawmedia.com/en/stable/csi.html>
__Stability Policy <https://docs.python-telegram-bot.org/stability_policy.html>
_ in case of deprecations or changes to documented behaviorIf the PR contains API changes (otherwise, you can ignore this passage)
Checked the Bot API specific sections of the
Stability Policy <https://docs.python-telegram-bot.org/stability_policy.html>
_Created a PR to remove functionality deprecated in the previous Bot API release (
see here <https://docs.python-telegram-bot.org/en/stable/stability_policy.html#case-2>
_)If relevant: