We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using pytest-cases, and using @fixture without parenthesis, and it produces errors in pyright.
pytest-cases
@fixture
pyright
@fixture def some_fixture(): ...
Argument of type "() -> str" cannot be assigned to parameter "scope" of type "str" in function "fixture"
There is @overload in typing to handle such cases https://mypy.readthedocs.io/en/stable/generics.html#decorator-factories
@overload
Are you interested in adding support for type hinting?
class_decorator
decorator
The text was updated successfully, but these errors were encountered:
Thanks @last-partizan ! Sure, that would be a good addition ! Would you like to have a try ?
Sorry, something went wrong.
Yes, i'll try to do it!
#23
Please, take a look :)
No branches or pull requests
I'm using
pytest-cases
, and using@fixture
without parenthesis, and it produces errors inpyright
.There is
@overload
in typing to handle such caseshttps://mypy.readthedocs.io/en/stable/generics.html#decorator-factories
Are you interested in adding support for type hinting?
Progress:
class_decorator
anddecorator
The text was updated successfully, but these errors were encountered: