Skip to content
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f5bdffd
Add `typing_extensions`
aelkheir Aug 19, 2026
d6c35bd
Set ruff `typing-extensions=false`
aelkheir Aug 19, 2026
ae4210c
Add `tg{dataclass,field}` helpers
aelkheir Aug 21, 2026
e20a074
Do ground work in `TelegramObject`
aelkheir Aug 19, 2026
b4bbfa3
Add runtime support for specifier parameter `alias`
aelkheir Aug 22, 2026
0026d93
Some typing improvements to `_utils/dataclass.py`
aelkheir Aug 23, 2026
12abacf
Migrate classes direclty under `telegram/`
aelkheir Aug 23, 2026
d19ccdc
Add chango fragment for PR #5334
aelkheir Aug 23, 2026
ea65eea
Finish up classes under `telegram/**/`
aelkheir Sep 10, 2026
8218317
Migrate `Bot` and `ExtBot`
aelkheir Sep 13, 2026
60c1ea0
Remove `test_slot_behaviour()` where its automated
aelkheir Sep 12, 2026
cf8bea0
Add missing default `None` to optional fields
aelkheir Sep 13, 2026
edb225e
Fix some enum copy-paste typos
aelkheir Sep 13, 2026
9e6d558
Override dataclasses generated `__hash__()`
aelkheir Sep 15, 2026
2d88fd0
Handle annotation replacements in generated` __init__`
aelkheir Sep 15, 2026
b17b6b8
Remove `__[get/set]state__` that dataclasses generate
aelkheir Sep 17, 2026
bfc7812
Update two tests that relied on uneeded type coercion
aelkheir Sep 15, 2026
9c53a39
Fix a `test_chatmemberupdated` failure
aelkheir Sep 15, 2026
0a33d49
Update `test_telegramobject` to use `@tg_dataclass()`
aelkheir Sep 15, 2026
37705e0
Remove old "deepcopy preserves freezing" test
aelkheir Sep 17, 2026
92dd955
Deprecate test_telegramobject `test_subclasses_have_api_kwargs`
aelkheir Sep 17, 2026
057fde2
Define `_CredentialsBase.*_hash` aliases as fields
aelkheir Sep 15, 2026
fbd5b8b
Handle all the `[un]freezing` in test suite
aelkheir Sep 17, 2026
cf6485b
Migrate `_inputmedia` classes
aelkheir Sep 20, 2026
908a07b
Simplify `passportelementerrors` migration
aelkheir Sep 20, 2026
bf850c9
Restore TO hashing behaviour and add tests for it
aelkheir Sep 21, 2026
557c9b9
Restore equality for direct TO instances
aelkheir Sep 21, 2026
2aa3421
Fix minor bugs in some field definitions
aelkheir Sep 21, 2026
01bb8c5
Document all breaking changes in changelog
aelkheir Sep 22, 2026
bd568f7
Merge remote-tracking branch 'upstream/master' into dataclasses
aelkheir Sep 22, 2026
2389cae
Fix some `test_poll` failures
aelkheir Sep 22, 2026
ed5bc39
Unify TelegramObject comparison tests after removing warnings
aelkheir Sep 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add typing_extensions
  • Loading branch information
aelkheir committed Aug 19, 2026
commit f5bdffd4cba0d659f609918e58194dc64c9deb28
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ classifiers = [
]
dependencies = [
"httpx >=0.27,<0.29",
"httpcore >=1.0.9; python_version >= '3.14'" # httpx doesn't pin this as of 0.28.1
"httpcore >=1.0.9; python_version >= '3.14'", # httpx doesn't pin this as of 0.28.1
"typing-extensions~=4.16",
]

[project.urls]
Expand Down Expand Up @@ -169,7 +170,7 @@ line-length = 99
show-fixes = true

[tool.ruff.lint]
typing-extensions = false
typing-extensions = true
ignore = ["PLR2004", "PLR0911", "PLR0912", "PLR0913", "PLR0915", "PERF203", "ASYNC240", "PLR0917"]
select = ["E", "F", "I", "PL", "UP", "RUF", "PTH", "C4", "B", "PIE", "SIM", "RET", "RSE",
"G", "ISC", "PT", "ASYNC", "TCH", "SLOT", "PERF", "PYI", "FLY", "AIR", "RUF022",
Expand Down