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
After initializing blank project with Taskiq Mypy gives an validation error
Format with Black........................................................Passed isort....................................................................Passed Check with Flake8........................................................Passed Validate types with MyPy.................................................Failed - hook id: mypy - exit code: 1 project_name\tkq.py:9: error: Incompatible types in assignment (expression has type "InMemoryBroker", variable has type "ZeroMQBroker") [assignment] broker = InMemoryBroker() ^~~~~~~~~~~~~~~~ Found 1 error in 1 file (checked 44 source files)
Initial project_name/tkq.py
project_name/tkq.py
import taskiq_fastapi from taskiq import InMemoryBroker, ZeroMQBroker from project_name.settings import settings broker = ZeroMQBroker() if settings.environment.lower() == "pytest": broker = InMemoryBroker() taskiq_fastapi.init( broker, "project_name.web.application:get_app", )
The text was updated successfully, but these errors were encountered:
Guess we need explicitly set type broker: AsyncBroker = ... at the beginning.
broker: AsyncBroker = ...
Sorry, something went wrong.
No branches or pull requests
After initializing blank project with Taskiq Mypy gives an validation error
Initial
project_name/tkq.py
The text was updated successfully, but these errors were encountered: