Skip to content

Basic support for Python 3.11's typeshed #12220

Closed
@hauntsaninja

Description

@hauntsaninja

Currently, running mypy with Python 3.11 on typeshed fails. We should fix it, ideally before the next mypy release.

These should help:
python/typeshed#7314
python/typeshed#7318

Looks like some generic type stuff is still broken:

stdlib/builtins.pyi:1710: error: Value of type "Type[type]" is not indexable  [index]

There are changes to use @property in enum that mypy doesn't like. Lucky for us @sobolevn is really good at fixing enum issues :D

stdlib/enum.pyi:103: error: Decorated property not supported  [misc]
stdlib/enum.pyi:105: error: Decorated property not supported  [misc]
stdlib/enum.pyi:131: error: Decorated property not supported  [misc]
stdlib/enum.pyi:148: error: Signature of "value" incompatible with supertype "Flag"  [override]
stdlib/enum.pyi:159: error: Decorated property not supported  [misc]
stdlib/enum.pyi:161: error: Decorated property not supported  [misc]
stdlib/enum.pyi:189: error: Decorated property not supported  [misc]

Metadata

Metadata

Assignees

Labels

bugmypy got something wrong

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions