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
$ mypy tests/fail/fail_example.py
tests/fail/fail_example.py:6: error: No overload variant of "int" matches argument type "Dict[Any, Any]"
tests/fail/fail_example.py:6: note: Possible overload variant:
tests/fail/fail_example.py:6: note: def int(self, x: Union[str, bytes, SupportsInt] = ...) -> int
tests/fail/fail_example.py:6: note: <1 more non-matching overload not shown>
When run in the test runner the lines starting with "note" cause problems with the tests.
if "# E:" in target_line:
marker = target_line.split("# E:")[-1].strip()
assert lineno in errors, f'Extra error "{marker}"'
assert marker in errors[lineno]
else:
> pytest.fail(f'Error {repr(errors[lineno])} not found')
E Failed: Error 'tests/fail/fail_example.py:6: note: def int(self, x: Union[str, unicode, bytearray], base: int = ...) -> int' not found
The text was updated successfully, but these errors were encountered:
When run outside the test runner you get this:
When run in the test runner the lines starting with "note" cause problems with the tests.
The text was updated successfully, but these errors were encountered: