8000 gh-130870 Fix _eval_type Handling for GenericAlias with Unflattened Arguments and Union Types by sharktide · Pull Request #130897 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-130870 Fix _eval_type Handling for GenericAlias with Unflattened Arguments and Union Types #130897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 2025-03-05-21-48-22.gh-issue-130870.uDz6AQ.rst
  • Loading branch information
sharktide authored May 12, 2025
commit f676ac0124c5584579f20b28eddcced32166e2fd
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
Issue: :gh:`130870`

Detailed changes:
This change improves the handling of ``GenericAlias`` and ``Union`` types in ``_eval_type``, ensuring that callable arguments for ``GenericAlias`` are unflattened and that ``Union`` types are properly evaluated.
Ensure that typing.Callable retains its subclass (_CallableGenericAlias) instead of being incorrectly converted to GenericAlias.
Loading
0