Skip to content

Can't autocomplete methods for ProactorEventLoop #8077

Description

@NewUserHa

Environment data

  • Pylance version: 2026.2.1
  • OS and version: win10
  • Python version: 3.13.11

Code Snippet

import asyncio
asyncio.get_running_loop().create_pipe_connection

Repro Steps

Image

Expected behavior

the language server lists out all possible candidates for autocomplete in pop-up

Actual behavior

the asyncio.get_running_loop().create_pipe_connection exists, but pylance doesn't show it up.
it only showed inrrelative results.

Additional

Another issue: when follow definition of the asyncio.get_running_loop().connect_read_pipe, it jumped into the AbstractEventLoop.connect_read_pipe rather than the real BaseEventLoop.connect_read_pipe. This issue has existed for long time.
It seems pylance doesn't work really well for the asyncio standard library for some time.

Metadata

Metadata

Assignees

Labels

Type

No type
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