Skip to content

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

@Bibo-Joshi Bibo-Joshi requested a review from harshil21 November 23, 2023 18:35
@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
@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
@Bibo-Joshi Bibo-Joshi added 🔌 enhancement pr description: enhancement and removed enhancement labels Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants