gh-133925: Make typing._UnionGenericAlias hashable by JelleZijlstra · Pull Request #133929 · python/cpython · GitHub

github.com

Tin mới

JelleZijlstra:unionhash

miss-islington-app

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

typing._UnionGenericAlias is unhashable in 3.14 #133925

: Make typing._UnionGenericAlias hashable

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

astropy/astropy#18126

I think that this is purely about the _UnionGenericAlias class itself, not _UnionGenericAlias instances.

hash should equal that of Union

View reviewed changes

needs backport to 3.14

needs backport to 3.14

: Make typing._UnionGenericAlias hashable (

bedevere-app Bot commented May 12, 2025

bedevere-app Bot commented May 12, 2025

GH-133936 is a backport of this pull request to the 3.14 branch.

: Make typing._UnionGenericAlias hashable (

: Make typing._UnionGenericAlias hashable (

: Make typing._UnionGenericAlias hashable (