File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1568,24 +1568,24 @@ note: A user-defined top-level module with name "typing" is not supported
15681568# flags: --ignore-missing-imports
15691569import scribe # No Python 3 stubs available for scribe
15701570from scribe import x
1571- import docutils # Python 3 stubs available for docutils
1571+ import python2 # Python 3 stubs available for python2
15721572import foobar_asdf
15731573import jack # This has a stubs package but was never bundled with mypy, so ignoring works
15741574[out]
1575- _testIgnoreImportIfNoPython3StubAvailable.py:4: error: Library stubs not installed for "docutils "
1576- _testIgnoreImportIfNoPython3StubAvailable.py:4: note: Hint: "python3 -m pip install types-docutils "
1575+ _testIgnoreImportIfNoPython3StubAvailable.py:4: error: Library stubs not installed for "python2 "
1576+ _testIgnoreImportIfNoPython3StubAvailable.py:4: note: Hint: "python3 -m pip install types-six "
15771577_testIgnoreImportIfNoPython3StubAvailable.py:4: note: (or run "mypy --install-types" to install all missing stub packages)
15781578_testIgnoreImportIfNoPython3StubAvailable.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
15791579
15801580[case testNoPython3StubAvailable]
15811581import scribe
15821582from scribe import x
1583- import docutils
1583+ import python2
15841584[out]
15851585_testNoPython3StubAvailable.py:1: error: Cannot find implementation or library stub for module named "scribe"
15861586_testNoPython3StubAvailable.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
1587- _testNoPython3StubAvailable.py:3: error: Library stubs not installed for "docutils "
1588- _testNoPython3StubAvailable.py:3: note: Hint: "python3 -m pip install types-docutils "
1587+ _testNoPython3StubAvailable.py:3: error: Library stubs not installed for "python2 "
1588+ _testNoPython3StubAvailable.py:3: note: Hint: "python3 -m pip install types-six "
15891589_testNoPython3StubAvailable.py:3: note: (or run "mypy --install-types" to install all missing stub packages)
15901590
15911591
You can’t perform that action at this time.
0 commit comments