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 — gh-148639: Implement PEP 800 (typing.disjoint_base) by JelleZijlstra · Pull Request #148640 · python/cpython

Conversation

@JelleZijlstra

@JelleZijlstra JelleZijlstra commented Apr 16, 2026 •
edited by github-actions Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  • Issue: Implement PEP 800: typing.disjoint_base #148639

📚 Documentation preview 📚: https://cpython-previews--148640.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

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

All reactions
@JelleZijlstra
pythongh-148639: Implement PEP 800 (typing.disjoint_base)
3f7202c
@JelleZijlstra
JelleZijlstra requested review from AA-Turner, AlexWaygood and willingc as code owners April 16, 2026 03:09
@bedevere-app bedevere-app Bot added the awaiting core review label Apr 16, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Apr 16, 2026
Implement PEP 800: typing.disjoint_base #148639
Closed
JelleZijlstra added 2 commits April 15, 2026 20:10
@JelleZijlstra
did not end up using that
27d989a
@JelleZijlstra
blurb
0cd8736
Viicos
Viicos reviewed Apr 16, 2026
View reviewed changes
Comment thread Doc/library/typing.rst Resolved

Uh oh!

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

Comment thread Lib/typing.py Resolved

Uh oh!

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

encukou
encukou reviewed Apr 16, 2026
View reviewed changes
Comment thread Doc/library/typing.rst Resolved

Uh oh!

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

JelleZijlstra and others added 3 commits April 16, 2026 05:51
@JelleZijlstra @Viicos
Apply suggestion from @Viicos
adb6834
Co-authored-by: Victorien <[email protected]>
@JelleZijlstra @encukou
Update Doc/library/typing.rst
90b4418
Co-authored-by: Petr Viktorin <[email protected]>
@JelleZijlstra
Merge branch 'python:main' into pep800
7099499
carljm
carljm approved these changes Apr 17, 2026
View reviewed changes

@carljm carljm left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, thank you!

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread Lib/typing.py Outdated
"""This decorator marks a class as a disjoint base.

Child classes of a disjoint base cannot inherit from other disjoint bases that are
not parent classes of the disjoint base.

@carljm carljm Apr 17, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think we need to say "parent or child" here, not just "parent", similar to the documentation wording.

Sorry, something went wrong.

Uh oh!

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

JelleZijlstra reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread Doc/library/typing.rst Outdated
Type checkers do not allow child classes of a disjoint base ``C`` to
inherit from other disjoint bases that are not parent or child classes of ``C``.

For example:

@carljm carljm Apr 17, 2026

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think we either need a double colon here or a .. testcode:: directive, for this example to render properly?

Sorry, something went wrong.

Uh oh!

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

All reactions

@JelleZijlstra JelleZijlstra Apr 18, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Good call, double colon works

Sorry, something went wrong.

Uh oh!

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

All reactions
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Apr 17, 2026
@JelleZijlstra
fixes
ca31f24
@JelleZijlstra
JelleZijlstra merged commit 92164dc into python:main Apr 18, 2026
51 checks passed

Uh oh!

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

@bedevere-app bedevere-app Bot removed the awaiting merge label Apr 18, 2026
@JelleZijlstra
JelleZijlstra deleted the pep800 branch April 18, 2026 02:20
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@JelleZijlstra @Viicos
@encukou @ljfp
pythongh-148639: Implement PEP 800 (typing.disjoint_base) (python#148640
5ec4032
)

Co-authored-by: Victorien <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@encukou encukou encukou left review comments
@carljm carljm carljm approved these changes
@AlexWaygood AlexWaygood Awaiting requested review from AlexWaygood AlexWaygood is a code owner
@AA-Turner AA-Turner Awaiting requested review from AA-Turner AA-Turner is a code owner
@willingc willingc Awaiting requested review from willingc
+1 more reviewer
@Viicos Viicos Viicos left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

4 participants

@JelleZijlstra @carljm @encukou @Viicos
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 01402503 — 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.