René's URL Explorer Experiment


Title: Support Python 3.15 beta by harshil21 · Pull Request #5259 · python-telegram-bot/python-telegram-bot · GitHub

Open Graph Title: Support Python 3.15 beta by harshil21 · Pull Request #5259 · python-telegram-bot/python-telegram-bot

X Title: Support Python 3.15 beta by harshil21 · Pull Request #5259 · python-telegram-bot/python-telegram-bot

Description: Closes #5231 I could not get the lazy imports feature to actually fully work with our library, somewhere along the path all dependencies are eagerly resolved. Doing lazy import telegram does work and everything is lazy, until you first use just one class, and then everything is imported all at once, which defeats the point. I may look more deeply into this later. There are other some non-critical warnings which show up, related to sphinx, but so far I've not noticed that breaking anything. Tracking issue: python/cpython#149671 This PR also bumps the cryptography version, which allows it to build on 3.15. Free threaded build fails on 3.15 due to pyca/cryptography#14983. For now we should say that we don't fully support 3.15t.

Open Graph Description: Closes #5231 I could not get the lazy imports feature to actually fully work with our library, somewhere along the path all dependencies are eagerly resolved. Doing lazy import telegram does work a...

X Description: Closes #5231 I could not get the lazy imports feature to actually fully work with our library, somewhere along the path all dependencies are eagerly resolved. Doing lazy import telegram does work a...

Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/pull/5259

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:af1d7f37-5f79-6893-b502-ed0d9b357cb3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCB4A:3CC54D:2B4704:35FF5A:6B0299FF
html-safe-nonce8426650d9a42223915475e9add6b88a17797d8bba0d3d07045ba82337f4643b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjRBOjNDQzU0RDoyQjQ3MDQ6MzVGRjVBOjZCMDI5OUZGIiwidmlzaXRvcl9pZCI6IjYxNzQxNTk1NjAxNzgzMDk2MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac440808db7cf26e12fd91233f79bf650d6b990cffca78c18dce998f6fb818f5f9
hovercard-subject-tagpull_request:3826359397
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
twitter:imagehttps://avatars.githubusercontent.com/u/37377066?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/37377066?s=400&v=4
og:image:altCloses #5231 I could not get the lazy imports feature to actually fully work with our library, somewhere along the path all dependencies are eagerly resolved. Doing lazy import telegram does work a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git
octolytics-dimension-user_id16178365
octolytics-dimension-user_loginpython-telegram-bot
octolytics-dimension-repository_id38696925
octolytics-dimension-repository_nwopython-telegram-bot/python-telegram-bot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38696925
octolytics-dimension-repository_network_root_nwopython-telegram-bot/python-telegram-bot
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F5259%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fpull%2F5259%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-telegram-bot%2Fpython-telegram-bot
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Reloadhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
python-telegram-bothttps://github.com/python-telegram-bot
python-telegram-bothttps://github.com/python-telegram-bot/python-telegram-bot
Codehttps://github.com/python-telegram-bot/python-telegram-bot
Issues23 (23)https://github.com/python-telegram-bot/python-telegram-bot/issues
Pull requests19 (19)https://github.com/python-telegram-bot/python-telegram-bot/pulls
Discussionshttps://github.com/python-telegram-bot/python-telegram-bot/discussions
Actionshttps://github.com/python-telegram-bot/python-telegram-bot/actions
Projectshttps://github.com/python-telegram-bot/python-telegram-bot/projects
Wikihttps://github.com/python-telegram-bot/python-telegram-bot/wiki
Security and qualityhttps://github.com/python-telegram-bot/python-telegram-bot/security
Insightshttps://github.com/python-telegram-bot/python-telegram-bot/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-telegram-bot%2Fpython-telegram-bot%2Fissues%2Fnew%2Fchoose
Poolitzerhttps://github.com/Poolitzer
masterhttps://github.com/python-telegram-bot/python-telegram-bot/tree/master
py315https://github.com/python-telegram-bot/python-telegram-bot/tree/py315
Conversation 1 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259
Commits 9 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits
Checks 32 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/checks
Files changed https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Support Python 3.15 beta https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#top
Show all changes 9 commits https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
1d1913d Use Python 3.15 in test files harshil21 Jun 8, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/1d1913d16c966c22bbc7e2662b92f658da187484
612249f Sort imports harshil21 Jun 8, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/612249fcf204b37c709544cf897dd9ece58c197a
b236289 Add chango fragment for PR #5259 harshil21 Jun 8, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/b236289c2775cc2f4c8815c8b1e73484756edb36
2309da0 Update classifier, and changelog harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/2309da0ada09b11b28a3fabfadf7e396f516a29c
9df033f Merge branch 'master' into py315 harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/9df033f6918a580401b12189dc3ae07ebd05e885
b2bf48a Type completness for __lazy_modules__ harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/b2bf48a304987bab0c56915df72de265619f1c60
c2d4083 Don't support running test official on 3.15 harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/c2d40834582924abe6659bdc0335feeb56ad1ac8
eac1356 Move skip to top of module harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/eac1356ac8853fa4eb12289ec1fa697aedf81fe9
7e8a0be TrackingDict.popitem() workaround for 3.15 harshil21 Jun 9, 2026 https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/commits/7e8a0bef85690bd6683eb79a59980b4785dd805e
Clear filters https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
unit_tests.yml https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-c91058a32040621ac54d6ea4194b302a420b7849f6e8561920d23a0e97acf69a
5259.iZALQbcHZUBRwuvxwMLpf4.toml https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-beb3892a1663199935b07ea6f057c64c77eafe7cda19e36737daabe23e243e0a
pyproject.toml https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
__init__.py https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
trackingdict.py https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
test_filters.py https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-9a5623270321c6b6592077f73348729d291e93f42ecc016d99a8d96b9a3d5aff
helpers.py https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f1e7f76decd75e2a604d24f2b5dcb74439433f5d65c7ef52f524132ac63a0890
test_official.py https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-73401ff1e58c7a05eb045992413797c1db808bceac818dab2f36c0685923867a
uv.lock https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
.github/workflows/unit_tests.ymlhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-c91058a32040621ac54d6ea4194b302a420b7849f6e8561920d23a0e97acf69a
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/.github/workflows/unit_tests.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-c91058a32040621ac54d6ea4194b302a420b7849f6e8561920d23a0e97acf69a
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-c91058a32040621ac54d6ea4194b302a420b7849f6e8561920d23a0e97acf69a
changes/unreleased/5259.iZALQbcHZUBRwuvxwMLpf4.tomlhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-beb3892a1663199935b07ea6f057c64c77eafe7cda19e36737daabe23e243e0a
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/changes/unreleased/5259.iZALQbcHZUBRwuvxwMLpf4.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
pyproject.tomlhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
src/telegram/__init__.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/src/telegram/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f893793a7cd9ee1432bf895b4c5dd34fb1d2826246cfa77ef153d4dd7bedcc14
src/telegram/ext/_utils/trackingdict.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/src/telegram/ext/_utils/trackingdict.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-7c26ef89083f41635ed04530e3397f2e067934e18a86b7bc93dd079ae680ca51
tests/ext/test_filters.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-9a5623270321c6b6592077f73348729d291e93f42ecc016d99a8d96b9a3d5aff
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/tests/ext/test_filters.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-9a5623270321c6b6592077f73348729d291e93f42ecc016d99a8d96b9a3d5aff
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-9a5623270321c6b6592077f73348729d291e93f42ecc016d99a8d96b9a3d5aff
tests/test_official/helpers.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f1e7f76decd75e2a604d24f2b5dcb74439433f5d65c7ef52f524132ac63a0890
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/tests/test_official/helpers.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f1e7f76decd75e2a604d24f2b5dcb74439433f5d65c7ef52f524132ac63a0890
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-f1e7f76decd75e2a604d24f2b5dcb74439433f5d65c7ef52f524132ac63a0890
tests/test_official/test_official.pyhttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-73401ff1e58c7a05eb045992413797c1db808bceac818dab2f36c0685923867a
View file https://github.com/python-telegram-bot/python-telegram-bot/blob/7e8a0bef85690bd6683eb79a59980b4785dd805e/tests/test_official/test_official.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/{{ revealButtonHref }}
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-73401ff1e58c7a05eb045992413797c1db808bceac818dab2f36c0685923867a
https://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files#diff-73401ff1e58c7a05eb045992413797c1db808bceac818dab2f36c0685923867a
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
Please reload this pagehttps://github.com/python-telegram-bot/python-telegram-bot/pull/5259/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.