Skip to content

Update type hints across the codebase#1749

Merged
JrooTJunior merged 2 commits intodev-3.xfrom
misc/type-hints-update
Jan 2, 2026
Merged

Update type hints across the codebase#1749
JrooTJunior merged 2 commits intodev-3.xfrom
misc/type-hints-update

Conversation

@JrooTJunior
Copy link
Member

Update type hints across the codebase (Python 3.10+)

  • Union[A, B] -> A | B
  • Optional[T] -> T | None
  • Dict[K, V] -> dict[k, v]
  • List[T] -> list[T]

@github-actions github-actions bot added the 3.x Issue or PR for stable 3.x version label Jan 2, 2026
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

✔️ Changelog found.

Thank you for adding a description of the changes

@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (dcff0f9) to head (abf1f3d).
⚠️ Report is 1 commits behind head on dev-3.x.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           dev-3.x     #1749   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          598       598           
  Lines        14200     14202    +2     
=========================================
+ Hits         14200     14202    +2     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
aiogram/client/bot.py 100.00% <ø> (ø)
aiogram/client/context_controller.py 100.00% <100.00%> (ø)
aiogram/dispatcher/flags.py 100.00% <100.00%> (ø)
aiogram/exceptions.py 100.00% <100.00%> (ø)
aiogram/filters/base.py 100.00% <ø> (ø)
aiogram/filters/chat_member_updated.py 100.00% <100.00%> (ø)
aiogram/filters/command.py 100.00% <ø> (ø)
aiogram/handlers/callback_query.py 100.00% <ø> (ø)
aiogram/handlers/message.py 100.00% <100.00%> (ø)
aiogram/methods/answer_callback_query.py 100.00% <100.00%> (ø)
... and 289 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JrooTJunior JrooTJunior merged commit 0306695 into dev-3.x Jan 2, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Issue or PR for stable 3.x version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant