plum icon indicating copy to clipboard operation
plum copied to clipboard

test: py3.14

Open nstarman opened this issue 1 month ago • 7 comments

nstarman avatar Nov 23 '25 23:11 nstarman

Pull Request Test Coverage Report for Build 19657176033

Details

  • 68 of 80 (85.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.9%) to 98.7%

Changes Missing Coverage Covered Lines Changed/Added Lines %
plum/alias.py 68 80 85.0%
<!-- Total: 68 80
Totals Coverage Status
Change from base Build 19631543372: -0.9%
Covered Lines: 1291
Relevant Lines: 1308

💛 - Coveralls

coveralls avatar Nov 23 '25 23:11 coveralls

@wesselb I don't know how to resolve this serious problem.

nstarman avatar Nov 24 '25 00:11 nstarman

Looking at https://github.com/python/cpython/blob/425f24e4fad672c211307a9f0018c8d39c4db9de/Objects/unionobject.c#L279 I kind of doubt the union alias functionality can continue to work this way. A potential alternative would be if beartype could dynamically generate TypeAliasType of the union and swap it in-place by modifying the function's annotations.

Meanwhile can I make this a no-op for Python 3.14+?

nstarman avatar Nov 24 '25 01:11 nstarman

Meanwhile can I make this a no-op for Python 3.14+?

Absolutely. Let's do this for now until we figure out whether this is still possible for 3.14+.

wesselb avatar Nov 24 '25 10:11 wesselb

Fully functional until py3.14 then they turn into deprecated no-ops.

nstarman avatar Nov 25 '25 03:11 nstarman

Tests need adjustment

nstarman avatar Nov 25 '25 03:11 nstarman

I can work on this after #179

nstarman avatar Dec 17 '25 19:12 nstarman

@nstarman that would be amazing! :)

wesselb avatar Dec 18 '25 10:12 wesselb