Skip to content

import itsdangerous.exc errors asking to --install-types even if it is already installed #10645

Closed
@asottile

Description

@asottile

Bug Report

import itsdangerous.exc

To Reproduce

virtualenv venv
venv/bin/pip install mypy types-itsdangerous
venv/bin/mypy

Expected Behavior

no error

(Write what you thought would happen.)

Actual Behavior

$ venv/bin/mypy t.py 
t.py:1: error: Library stubs not installed for "itsdangerous.exc" (or incompatible with Python 3.8)
t.py:1: note: Hint: "python3 -m pip install types-itsdangerous"
t.py:1: note: (or run "mypy --install-types" to install all missing stub packages)
t.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Your Environment

  • Mypy version used: 0.902
  • Mypy command-line flags: none, also tried --ignore-missing-imports
  • Mypy configuration options from mypy.ini (and other config files): none
  • Python version used: 3.8.5
  • Operating system and version: ubuntu 20.04

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