-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Fix type hint on Subscriber.__aiter__
#136
Comments
It is a generator because it |
I mentioned it because it's already used for the async generator a few lines above. Either option is fine though: broadcaster/broadcaster/_base.py Line 90 in 23c9b40
|
If you prefer keep the generator type, I think you can just change the return type of That should resolve the error wookie184 described |
Merged. |
I've read the contributing guidelines and believe this is clear enough to open an issue directly. I might open a PR at some point but if someone else can get to it first please do!
Current type hint:
broadcaster/broadcaster/_base.py
Line 113 in 23c9b40
Incorrect complaint by pyright cause by this:
Correct type hint:
Or the also correct and a bit nicer (and consistent with
Broadcast.subscribe
):The text was updated successfully, but these errors were encountered: