Skip to content

--install-types suggests incompatible stub packages #10602

Closed
@tpazderka

Description

@tpazderka

Bug Report

Running mypy --install-types suggest installation of stubs that are ot compatible with the current running version of python.
To Reproduce

(Write your steps here:)

  1. Create a project containing import OpenSSL.crypto
  2. mypy --install-types

Expected Behavior

Does not suggest installing library stubs incompatible with python version.

Actual Behavior

Suggests (and installs) stubs incompatible with the current version.

Your Environment

  • Mypy version used: 0.901
  • Mypy command-line flags: none
  • Mypy configuration options from mypy.ini (and other config files): none
  • Python version used: 3.8, 3.9
  • Operating system and version: Debian

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