Skip to content

Regression - Module "_typeshed" has no attribute "SupportsLessThan" #12355

@Zeckie

Description

@Zeckie

Bug Report

The example of using SupportsLessThan in the documentation does not work in mypy 0.941 or 0.940.

To Reproduce

https://mypy-play.net/?mypy=0.931&python=3.10&gist=6ad43abe09b33cd9dceea02d40c0224d

Works correctly on 0.931, but not 0.941 or 0.940.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions