You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you reporting a bug, or opening a feature request?
A bug
Please insert below the code you are checking with mypy
test.py:
# type: ignoredeftest1():
return1print(test1())
What is the actual output?
with mypy test.py --strict:
Success: no issues found in 1 source file
with mypy test.py --strict -2:
test.py:1: error: unused 'type: ignore' comment
test.py:3: error: Function is missing a return type annotation
test.py:6: error: Call to untyped function "test1" in typed context
Found 3 errors in 1 file (checked 1 source file)
What is the output you expect?
both mypy test.py --strict and mypy test.py --strict -2:
Success: no issues found in 1 source file
What are the versions of mypy and Python you are using?
mypy: 0.740
python: 3.7.4
Do you see the same issue after installing mypy from Git master?
Fixes#7785. This was a mistake in my original PR that introduced the feature
(#6830). I forgot to copy one of the changes in `fastparse.py` to `fastparse2.py`.
It's an embarrassingly simple fix. I also included a regression test for good measure.
A bug
test.py
:with
mypy test.py --strict
:with
mypy test.py --strict -2
:both
mypy test.py --strict
andmypy test.py --strict -2
:What are the versions of mypy and Python you are using?
Do you see the same issue after installing mypy from Git master?
Yes (on 09c1fc7)
The text was updated successfully, but these errors were encountered: