Skip to content

Preserve runtime typing under Ruff rules - #50

Merged
timkpaine merged 1 commit into
mainfrom
fix-ruff-runtime-annotations
Jul 28, 2026
Merged

Preserve runtime typing under Ruff rules#50
timkpaine merged 1 commit into
mainfrom
fix-ruff-runtime-annotations

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Description

Preserve typing.Optional and typing.Union runtime objects through aliases so p2a continues to parse union-typed model fields while satisfying Ruff UP007 and UP045. Ruff configuration remains unchanged.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

9 tests   9 ✅  1s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit ef6aa7d.

@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.47%. Comparing base (a426267) to head (ef6aa7d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   96.44%   96.47%   +0.03%     
==========================================
  Files           5        5              
  Lines         225      227       +2     
  Branches        7        7              
==========================================
+ Hits          217      219       +2     
  Misses          7        7              
  Partials        1        1              

☔ 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.

@timkpaine
timkpaine merged commit ca61ff5 into main Jul 28, 2026
4 checks passed
@timkpaine
timkpaine deleted the fix-ruff-runtime-annotations branch July 28, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant