Skip to content

Traceback analysing asyncio "item = yield from queue.get()" #836

@gjcarneiro

Description

@gjcarneiro

Analysing:

import asyncio

@asyncio.coroutine
def test(self):
    queue = asyncio.Queue(16384)
    sample = yield from queue.get()

Result:

  File "/home/gjc/projects/mollytest/env/lib/python3.4/site-packages/mypy/checker.py", line 1693, in visit_yield_from_expr
    if result_instance.type.fullname() == "asyncio.futures.Future":
AttributeError: 'AnyType' object has no attribute 'type'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions