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

Improve write_timeout Handling for Media Methods #3952

Merged
merged 5 commits into from Nov 26, 2023
Merged

Conversation

Bibo-Joshi
Copy link
Member

@Bibo-Joshi Bibo-Joshi commented Oct 27, 2023

Second part of #3864

Unfortunately I realised that the approach outlined in #3864 is not as backward compatible as I initially thought, but I think I found a rather clean deprecation layer

  • Added .. versionadded:: NEXT.VERSION, .. versionchanged:: NEXT.VERSION or .. deprecated:: NEXT.VERSION to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)
  • Created new or adapted existing unit tests
  • Documented code changes according to the CSI standard <https://standards.mousepawmedia.com/en/stable/csi.html>__
  • Added myself alphabetically to AUTHORS.rst (optional)
  • Added new classes & modules to the docs and all suitable __all__ s
  • Checked the Stability Policy <https://docs.python-telegram-bot.org/stability_policy.html>_ in case of deprecations or changes to documented behavior

* implement deprecation layer in `BaseRequest`
* implement hard-coded handling in `HTTPXRequset`
* Add deprecation notices to docs
# Conflicts:
#	docs/auxil/kwargs_insertion.py
Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic looks good, just few minor comments

docs/auxil/sphinx_hooks.py Outdated Show resolved Hide resolved
docs/auxil/kwargs_insertion.py Show resolved Hide resolved
@Bibo-Joshi Bibo-Joshi added this to the 20.7 milestone Nov 23, 2023
@Bibo-Joshi Bibo-Joshi merged commit 354a8e0 into master Nov 26, 2023
23 checks passed
@Bibo-Joshi Bibo-Joshi deleted the media-timeout-fix branch November 26, 2023 15:44
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants