This is the technical changelog for version 21.1.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
Bug Fixes
Fix Bug With Parameter message_thread_id of Message.reply_* (:pr:4207 closes :issue:4205)
Minor Changes
Remove Deprecation Warning in JobQueue.run_daily (:pr:4206 by @Konano <https://github.com/Konano>__)
Fix Annotation of EncryptedCredentials.decrypted_secret (:pr:4199 by @marinelay <https://github.com/marinelay>__ closes :issue:4198)
Version 21.1
Released 2024-04-12
This is the technical changelog for version 21.1. More elaborate release notes can be found in the news channel @pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>__.
Major Changes
API 7.2 (:pr:4180 closes :issue:4179 and :issue:4181, :issue:4181)
Make ChatAdministratorRights/ChatMemberAdministrator.can_*_stories Required (API 7.1) (:pr:4192)
Minor Changes
Refactor Debug logging in Bot to Improve Type Hinting (:pr:4151 closes :issue:4010)
New Features
Make Message.reply_* Reply in the Same Topic by Default (:pr:4170 by @aelkheir <https://github.com/aelkheir>__ closes :issue:4139)
Accept Socket Objects for Webhooks (:pr:4161 closes :issue:4078)
Add Update.effective_sender (:pr:4168 by @aelkheir <https://github.com/aelkheir>__ closes :issue:4085)
Documentation Improvements
Documentation Improvements (:pr:4171, :pr:4158 by @teslaedison <https://github.com/teslaedison>__)
[orm] [bug] Added new attribute _orm.ORMExecuteState.is_from_statement to
detect statements created using _sql.Select.from_statement(), and
enhanced FromStatement to set _orm.ORMExecuteState.is_select,
_orm.ORMExecuteState.is_insert,
_orm.ORMExecuteState.is_update, and
_orm.ORMExecuteState.is_delete according to the element that is
sent to the _sql.Select.from_statement() method itself.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where
attributes defined with _orm.composite() on a superclass would cause
an internal exception on load.
[orm] [bug] [regression] Fixed regression from 1.4 where using _orm.defaultload() in
conjunction with a non-propagating loader like _orm.contains_eager()
would nonetheless propagate the _orm.contains_eager() to a lazy load
operation, causing incorrect queries as this option is only intended to
come from an original load.
[orm] [bug] Fixed issue in ORM Annotated Declarative where typing issue where literals
defined using PEP 695 type aliases would not work with inference of
Enum datatypes. Pull request courtesy of Alc-Alc.
[orm] [bug] Fixed issue in _orm.selectin_polymorphic() loader option where the
SELECT emitted would only accommodate for the child-most class among the
result rows that were returned, leading intermediary-class attributes to be
unloaded if there were no concrete instances of that intermediary-class
present in the result. This issue only presented itself for multi-level
inheritance hierarchies.
[orm] [bug] Fixed issue in _orm.Session.bulk_save_objects() where the form of the
identity key produced when using return_defaults=True would be
incorrect. This could lead to an errors during pickling as well as identity
map mismatches.
📝 Update console output with Click 8 messages. PR #789 by @svlandeg.
📝 Remove references to a .rst README generated by poetry new. PR #632 by @jonasmmiguel.
0.12.1
Now you don't need to install typer[all]. When you install typer it comes with the default optional dependencies and the typer command.
If you don't want the extra optional dependencies (rich and shellingham), you can install typer-slim instead.
You can also install typer-slim[standard], which includes the default optional dependencies, but not the typer command.
Now the package typer-cli doesn't add anything on top of what typer has, it only depends on typer, and is there only for backwards compatibility, so that projects that depend on typer-cli can get the latest features of the typer command while they upgrade their dependencies to require typer directly.
Features
✨ Add support for typer ./someprogram.py utils docs --title. PR #782 by @tiangolo.
Fixes
🐛 Fix broken installation when upgrading from typer <0.12.0 to typer >=0.12.0, make typer independent of typer-slim, include typer command in typer package. PR #791 by @tiangolo.
This fixes a problem that would break the typer installation directory when upgrading from typer <0.12.0 to typer >=0.12.0, see issue #790.
By installing the latest version (0.12.1) it fixes it, for any previous version, even if the installation directory was already broken by the previous upgrade.
Internal
👷 Add cron to run test once a week on monday. PR #783 by @estebanx64.
0.12.0
In version 0.12.0, the typer package depends on typer-slim[standard] which includes the default dependencies (instead of typer[all]) and typer-cli (that provides the typer command).
If you don't want the extra optional dependencies (rich and shellingham), you can install typer-slim instead.
📝 Update console output with Click 8 messages. PR #789 by @svlandeg.
📝 Remove references to a .rst README generated by poetry new. PR #632 by @jonasmmiguel.
0.12.1
Now you don't need to install typer[all]. When you install typer it comes with the default optional dependencies and the typer command.
If you don't want the extra optional dependencies (rich and shellingham), you can install typer-slim instead.
You can also install typer-slim[standard], which includes the default optional dependencies, but not the typer command.
Now the package typer-cli doesn't add anything on top of what typer has, it only depends on typer, and is there only for backwards compatibility, so that projects that depend on typer-cli can get the latest features of the typer command while they upgrade their dependencies to require typer directly.
Features
✨ Add support for typer ./someprogram.py utils docs --title. PR #782 by @tiangolo.
Fixes
🐛 Fix broken installation when upgrading from typer <0.12.0 to typer >=0.12.0, make typer independent of typer-slim, include typer command in typer package. PR #791 by @tiangolo.
This fixes a problem that would break the typer installation directory when upgrading from typer <0.12.0 to typer >=0.12.0, see issue #790.
By installing the latest version (0.12.1) it fixes it, for any previous version, even if the installation directory was already broken by the previous upgrade.
Internal
👷 Add cron to run test once a week on monday. PR #783 by @estebanx64.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the python group with 6 updates:
20.8
21.1.1
1.43.0
2.1.1
2.0.28
2.0.30
0.41.1
0.41.2
0.9.0
0.12.3
0.2.2
0.4.3
Updates
python-telegram-bot
from 20.8 to 21.1.1Release notes
Sourced from python-telegram-bot's releases.
... (truncated)
Changelog
Sourced from python-telegram-bot's changelog.
... (truncated)
Commits
75d946e
Bump version to v21.1.1fed8d88
Fix Bug With Parametermessage_thread_id
ofMessage.reply_*
(#4207)42b68f1
Remove Deprecation Warning inJobQueue.run_daily
(#4206)58b8ef4
Fix Annotation ofEncryptedCredentials.decrypted_secret
(#4199)f6d009d
Bump version to v21.11538947
Documentation Improvements (#4171, #4158)5fa4579
API 7.2 (#4180, #4181)3ec7bb8
MakeChatAdministratorRights.can_*_stories
Required (API 7.1) (#4192)040cd2c
pre-commit
autoupdate (#4184)474f9c9
MakeMessage.reply_*
Reply in the Same Topic by Default (#4170)Updates
sentry-sdk
from 1.43.0 to 2.1.1Release notes
Sourced from sentry-sdk's releases.
... (truncated)
Changelog
Sourced from sentry-sdk's changelog.
... (truncated)
Commits
c308cfc
Updated changelog59c3309
release: 2.1.15520bdb
Fix DSC in celery tasks started by Celery Beat. (#3047)0f0cde7
Merge branch 'release/2.1.0'385b77b
release: 2.1.0c368a2f
fix(quart): Fix Quart integration (#3043)aaa8f04
Reduce API cross-section for huggingface in test (#3042)41aa99b
Huggingface Hub integration (#3033)eac253a
feat(integrations): Add Anthropic Integration (#2831)f98f77f
meta(license): Bump copyright year (#3029)Updates
sqlalchemy
from 2.0.28 to 2.0.30Release notes
Sourced from sqlalchemy's releases.
... (truncated)
Commits
Updates
sqlalchemy-utils
from 0.41.1 to 0.41.2Changelog
Sourced from sqlalchemy-utils's changelog.
Commits
Updates
typer
from 0.9.0 to 0.12.3Release notes
Sourced from typer's releases.
... (truncated)
Changelog
Sourced from typer's changelog.
... (truncated)
Commits
525c777
🔖 Release version 0.12.3718a899
📝 Update release notes3bc7d25
🐛 Fix Rich formatting with no commands (#796)c9bc93c
🔖 Release version 0.12.2c99a950
📝 Update release notescfae1d2
✨ Improve column help display, ensure commands column width is the same on al...475359f
📝 Update release notesa0209aa
🐛 Add support for an argument of typeOptional[Tuple]
and default value `No...5cee0af
📝 Update release notescb78113
📝 Update release notesUpdates
ruff
from 0.2.2 to 0.4.3Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
... (truncated)
Commits
1e91a09
Bump version to v0.4.3 (#11274)d0f51c6
Remove remainingruff_shrinking
references (#11272)8dd3811
Use function range forreimplemented-operator
diagnostics (#11271)894cd13
[refurb
] Ignore methods inreimplemented-operator
(FURB118
) (#11270)f3284fd
Remove unnecessary check for RUF020 enabled (#11268)82dd5e6
[red-knot] resolve class members (#11256)6a1e555
Upgrade to Rust 1.78 (#11260)349a4cf
Remove trailing reference section (#11257)dfbeca5
ruff server
no longer hangs after shutdown (#11222)9e69cd6
Rephrase rationale forpytest-incorrect-pytest-import
(#11255)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show