Skip to content

Conversation

@junkmd
Copy link
Collaborator

@junkmd junkmd commented Nov 1, 2025

See #876.

As they have the smallest impact on the runtime codebase, I chose type stubs and symbols under TYPE_CHECKING blocks as the first step of #876.

Remove conditional import of `Annotated` from `typing_extensions`.
`Annotated` is available in the standard `typing` module since Python 3.9.
Remove unused import of `typing.Tuple` and replace `hints.Tuple` with the built-in `tuple` for type annotations in `typeannotator.py`.
This simplifies type hinting and aligns with standard Python practices.
@junkmd junkmd added this to the 1.4.14 milestone Nov 1, 2025
@junkmd junkmd added the typing related to Python static typing system label Nov 1, 2025
@codecov
Copy link

codecov bot commented Nov 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.70%. Comparing base (6d80cc6) to head (14705a7).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #877   +/-   ##
=======================================
  Coverage   84.70%   84.70%           
=======================================
  Files         125      125           
  Lines       11536    11536           
=======================================
  Hits         9771     9771           
  Misses       1765     1765           

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@junkmd junkmd merged commit 5fd01e3 into enthought:main Nov 1, 2025
370 of 395 checks passed
@junkmd junkmd deleted the pep585_hints branch November 1, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typing related to Python static typing system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant