Skip to content

Conversation

@brianschubert
Copy link
Member

Subtest no longer complains when these types are marked @type_check_only since python/mypy#19568

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit b2777f4 into python:main Sep 14, 2025
63 checks passed
@randolf-scholz
Copy link
Contributor

This PR causes downstream errors in pyright Code sample in pyright playground

from types import NoneType, EllipsisType, NotImplementedType

extra_types: list[type] = [
    NoneType,  # OK
    EllipsisType,  # OK
    NotImplementedType  # E: "_NotImplementedType" is marked as @type_check_only
]

This type checked without errors in version 1.1.405, but since 1.1.406 is issues the error due to the updated stubs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants