python / typeshed

Collection of library stubs for Python, with static types
Other
4.3k stars 1.73k forks source link

Literal based overloads for asyncio transport #6210

Open kumaraditya303 opened 2 years ago

kumaraditya303 commented 2 years ago

Asyncio transport get_extra_info has defined value as it's argument so it can be overloaded with Literal see https://docs.python.org/3/library/asyncio-protocol.html#asyncio.BaseTransport.get_extra_info

A5rocks commented 2 years ago

I do not think it can, as it seems that this is a base class:

name is a string representing the piece of transport-specific information to get.

- the docs