Skip to content

Update Typehint annotations - #193

Merged
bdraco merged 9 commits into
aio-libs:masterfrom
Vizonex:update-typehints
May 8, 2026
Merged

bdraco merged 9 commits into
aio-libs:masterfrom
Vizonex:update-typehints

Conversation

@Vizonex

@Vizonex Vizonex commented Jan 22, 2026

Copy link
Copy Markdown
Member

What do these changes do?

I ran pyupgrade on this file and made a few adjustments to allow 3.9 to sill be backwards compatible.

Are there changes in behavior for the user?

Not really but users should be aware that 3.9 could be dropped at any point in the future. For now, I have added from __future__ import annotations to provide any needed backwards compatibility for this version but users should start thinking about updating to newer versions of python in the meantime.

Related issue number

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

Comment thread src/propcache/_helpers_py.py Fixed
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label Jan 22, 2026
@codspeed

codspeed Bot commented Jan 22, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing Vizonex:update-typehints (2367a59) with master (2266c3f)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (483e9d3) during the generation of this report, so 2266c3f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Jan 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.63%. Comparing base (483e9d3) to head (2367a59).
⚠️ Report is 51 commits behind head on master.

❌ Your project status has failed because the head coverage (97.35%) is below the target coverage (98.20%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #193   +/-   ##
=======================================
  Coverage   97.63%   97.63%           
=======================================
  Files          17       17           
  Lines         846      847    +1     
  Branches       44       44           
=======================================
+ Hits          826      827    +1     
  Misses         12       12           
  Partials        8        8           
Flag Coverage Δ
CI-GHA 97.63% <100.00%> (+<0.01%) ⬆️
MyPy 91.84% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.49% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.53% <100.00%> (+0.01%) ⬆️
OS-macOS 94.53% <100.00%> (+0.01%) ⬆️
Py-3.10.11 92.71% <100.00%> (+0.01%) ⬆️
Py-3.10.20 94.53% <100.00%> (+16.45%) ⬆️
Py-3.11.15 96.12% <100.00%> (+16.44%) ⬆️
Py-3.11.9 94.30% <100.00%> (+0.01%) ⬆️
Py-3.12.10 94.30% <100.00%> (+0.01%) ⬆️
Py-3.12.13 96.12% <100.00%> (+<0.01%) ⬆️
Py-3.13.13 96.12% <100.00%> (+<0.01%) ⬆️
Py-3.13.13t 96.12% <100.00%> (+<0.01%) ⬆️
Py-3.14.4 96.10% <100.00%> (+1.86%) ⬆️
Py-3.14.4t 96.10% <100.00%> (+0.01%) ⬆️
Py-pypy3.10.16-7.3.19 78.13% <100.00%> (+0.04%) ⬆️
VM-macos-latest 94.53% <100.00%> (+0.01%) ⬆️
VM-ubuntu-latest 97.49% <100.00%> (+<0.01%) ⬆️
VM-windows-11-arm 94.30% <100.00%> (+0.01%) ⬆️
VM-windows-latest 94.53% <100.00%> (+0.01%) ⬆️
pytest 97.49% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdraco
bdraco enabled auto-merge (squash) May 8, 2026 16:42
@bdraco

bdraco commented May 8, 2026

Copy link
Copy Markdown
Member

After 3.9 dropped this just amount to from __future__ import annotations but still useful on its own

@bdraco
bdraco merged commit fdacd6c into aio-libs:master May 8, 2026
58 of 59 checks passed
@Vizonex
Vizonex deleted the update-typehints branch May 8, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants