File tree 1 file changed +6
-6
lines changed
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
1568
1568
# flags: --ignore-missing-imports
1569
1569
import scribe # No Python 3 stubs available for scribe
1570
1570
from scribe import x
1571
- import docutils # Python 3 stubs available for docutils
1571
+ import python2 # Python 3 stubs available for python2
1572
1572
import foobar_asdf
1573
1573
import jack # This has a stubs package but was never bundled with mypy, so ignoring works
1574
1574
[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 "
1577
1577
_testIgnoreImportIfNoPython3StubAvailable.py:4: note: (or run "mypy --install-types" to install all missing stub packages)
1578
1578
_testIgnoreImportIfNoPython3StubAvailable.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
1579
1579
1580
1580
[case testNoPython3StubAvailable]
1581
1581
import scribe
1582
1582
from scribe import x
1583
- import docutils
1583
+ import python2
1584
1584
[out]
1585
1585
_testNoPython3StubAvailable.py:1: error: Cannot find implementation or library stub for module named "scribe"
1586
1586
_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 "
1589
1589
_testNoPython3StubAvailable.py:3: note: (or run "mypy --install-types" to install all missing stub packages)
1590
1590
1591
1591
You can’t perform that action at this time.
0 commit comments