-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
AsyncHTTPPolicy's next attribute is Optional[Any] #5797
Comments
It should call transport as next. Close it. Will re-open if we see real requests. |
Reopening this for further consideration because it creates mypy errors in subclasses. For example, line 94 of this code gets "Item "None" of "Optional[Any]" has no attribute "send"": azure-sdk-for-python/sdk/identity/azure-identity/azure/identity/aio/_credentials/azure_arc.py Lines 89 to 94 in dc95dbf
This can of course be worked around in the subclass but it would be better for AsyncHTTPPolicy to have the correct type. |
Yes, that worked for my case. |
Looks like this should be
Optional[AsyncHTTPPolicy]
instead; wouldnext
ever be anything else?The text was updated successfully, but these errors were encountered: