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
Please provide more information to help us understand the issue:
Are you reporting a bug, or opening a feature request? Bug
Please insert below the code you are checking with mypy,
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
from unittest.mock import Mock
from unittest.mock import patch
import click.testing
import pytest
from pytest_mock import MockFixture
from irpf_cei import __main__
@pytest.fixture
def mock_cei_validate_header(mocker: MockFixture) -> Mock:
"""Fixture for mocking cei.validate."""
mock = mocker.patch("irpf_cei.cei.validate_header")
mock.return_value = 2019, "ABC"
return mock
What is the actual behavior/output?
error: Returning Any from function declared to return "Mock"
[no-any-return]
return mock
What is the behavior/output you expect?
It should work since I expect a Mock from patch.
What are the versions of mypy and Python you are using?
v0.782 / 3.8.3
Do you see the same issue after installing mypy from Git master?
Didn't try.
What are the mypy flags you are using? (For example --strict-optional)
Please provide more information to help us understand the issue:
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
It should work since I expect a Mock from patch.
v0.782 / 3.8.3
Didn't try.
the full traceback below.
N/A
The text was updated successfully, but these errors were encountered: