Skip to content

Disable type inference on return types #566

Closed as not planned
Closed as not planned
@Orkunnnn

Description

@Orkunnnn
def foo():
    return bar()

It is hard to get what foo returns. Is there a way to disable this behavior in basedpyright. It was discussed in pyright microsoft/pyright#3013 but unfortunately got rejected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    rejected upstreamalso a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions