bpo-46655: allow stringized TypeAlias with get_type_hints by GBeauregard · Pull Request #31156 · python/cpython · GitHub

github.com

Tin mới

GBeauregard:fix-typealias

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

allow stringized TypeAlias with get_type_hints

📜🤖 Added by blurb_it.

Merge branch 'python:main' into fix-typealias

View reviewed changes

awaiting core review

awaiting core review

bpo-46644: No longer accept arbitrary callables as type arguments in generics #31159

needs backport to 3.10

needs backport to 3.10

[3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (

[3.10] bpo-46655: allow stringized TypeAlias with get_type_hints (GH-31156). (#31175) (cherry picked from commit 77b025be4a4cd5a3bfc1b1af560cc57e8e956c98) Co-authored-by: Gregory Beauregard <[email protected]>

Add typing to 3.11 What's New #91491

typing.TypeAlias is not in the list of allowed plain _SpecialForm typeforms #90813

⌂git
1/1