basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

hover docs don't show for union values

Open KotlinIsland opened this issue 9 months ago • 1 comments

Description

class C:
    def f(self) -> int:
        """among"""
        ...


class D:
    def f(self) -> str:
        """asdf"""
        ...


def f(x: C | D):
    x.f

KotlinIsland avatar May 07 '25 00:05 KotlinIsland

I guess it should show both docstrings with some sort of indication that it's a union of both of them

DetachHead avatar May 07 '25 14:05 DetachHead