Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mypy does not recognize a not implemented async method as an async generator #703

Open
@ohmayr

Description

@ohmayr

mypy does not recognize the abstract async content method from google.auth.aio.transport.Response as an async generator because it looks for the yield keyword and the abstract method is not implemented. Currently, we've silenced mypy for this issue since the code works as expected.

Follow up on this issue and remove # type: ignore from the relevant spot when fixed. This can be looked up by searching for this issue in the code.

self._response_itr = self._response.content().__aiter__()

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions