GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improved `Literal?` types by randolf-scholz · Pull Request #20444 · python/mypy

Improved Literal? types #20444

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.

Sign up for GitHub

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

Open
randolf-scholz wants to merge 17 commits into python:master
base: master
Loading
Loading
from randolf-scholz:literals_as_anyof_types

Uh oh!

There was an error while loading. Please reload this page.

Open

Improved Literal? types #20444

Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
0e09a61
better support for literal? types
randolf-scholz Aug 7, 2025
6101a57
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Jan 16, 2026
76eb7ce
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Feb 2, 2026
0260762
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Feb 3, 2026
d7fe600
updated test-data
randolf-scholz Feb 3, 2026
80d2bed
fixed incompatibility with FlipFlop test-case
randolf-scholz Feb 3, 2026
96da68d
added type hint for mypyc
randolf-scholz Feb 3, 2026
377a0af
cleanup + fix meet with NamedTuple
randolf-scholz Feb 3, 2026
cea2af9
rewrote ternary statement as separate returns for mypyc
randolf-scholz Feb 3, 2026
ef22b69
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Feb 3, 2026
f2b855c
explicit is None check for mypyc
randolf-scholz Feb 3, 2026
8d53181
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Feb 26, 2026
8dfa9d6
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Apr 7, 2026
da5727b
Merge branch 'master' into literals_as_anyof_types
hauntsaninja Apr 15, 2026
45ccb3a
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Aug 25, 2026
3497ec1
Update type reveal comments in tests for Literal types
randolf-scholz Aug 26, 2026
748c834
Merge branch 'master' into literals_as_anyof_types
randolf-scholz Nov 4, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into literals_as_anyof_types
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@randolf-scholz
randolf-scholz authored Feb 2, 2026
commit 76eb7ceb5b8bec5990f70165b719d39aaa5beea1

There are no files selected for viewing

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.