Fix various things with `Literal` by AlexWaygood · Pull Request #145 · python/typing_extensions · GitHub

github.com

Tin mới

AlexWaygood:literal-fixes

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

Security and quality 0

python/cpython#23294

Backports python/cpython#23294 and python/cpython#23383, both originally by Yurii Karabas.

python/cpython#23383

Backports python/cpython#23294 and python/cpython#23383, both originally by Yurii Karabas.

Add failing test cases

Backport the fixes; add docs

Use typing_extensions.Literal for 3.8 due to unresolved bugs in CPython #144

View reviewed changes

Learn more about hiding disruptive comments

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

python/cpython#19620

A result of python/cpython#19620. I'm looking at it.

View reviewed changes

Add breakpoint comments to version_info checks #642

Remove obsolete Literal deduplication assertion #785

(🐞) Literal doesn't flatten it's arguments

Successfully merging this pull request may close these issues.