Skip to content

Docstring and prototype not properly shown with pylance #109

@vxgmichel

Description

@vxgmichel

Pylance does not show the actual docstring and prototype when overing a stream operators:
stream

Surprisingly, it does show it for their pipe method:
pipe

Also, it does show when opening a parenthesis after a stream operator:
stream2

Note that introspection does work properly:

$ ipython
In [1]: from aiostream import stream
In [2]: stream.take?
Signature:      stream.take(source: 'AsyncIterable[T]', n: 'int') -> 'Stream[T]'
Type:           PipableOperatorImplementation
String form:    aiostream.stream.select.take
File:           ~/repos/aiostream/aiostream/stream/select.py
Docstring:     
Forward the first ``n`` elements from an asynchronous sequence.

If ``n`` is negative, it simply terminates before iterating the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions