-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
6.0.0rc1 pytest.fixture mypy error: Value of type "object" is not indexable #7494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This also affects pytest.mark.parametrize
gives error: "object" has no attribute "__name__"; maybe "__ne__" or "__new__"? the type annotation for _ParametrizeMarkDecorator is also
|
from https://docs.pytest.org/en/stable/fixture.html#parametrizing-fixtures
so the return type should be Optional[str] |
although maybe safer to use Any (or keep as object), since OP returns int and works OK. |
Yes, I think this should be |
Uh oh!
There was an error while loading. Please reload this page.
pip list
from the virtual environment you are usingthe type annotation for
ids
infixture
isi believe that the Callable should accept Any.
The text was updated successfully, but these errors were encountered: