Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple type parameters result in unknown type #256

Open
Glyphack opened this issue Aug 18, 2024 · 0 comments
Open

Multiple type parameters result in unknown type #256

Glyphack opened this issue Aug 18, 2024 · 0 comments

Comments

@Glyphack
Copy link
Owner

collection type param type is not correct.


In the following the T, S] should be fixed and tay tuple of type type parmeters or be removed. Not sure we can check pyright output.

Line 113: class Pair1(Generic[T, S]): ...

Expr types in the line --->:
        Pair1 => (class) basic_generics.Pair1[TypeVar[T, ], TypeVar[S, ]]
        Generic => (class) Generic
        Generic[T, S] => (class) Generic
        T => TypeVar[T, ]
        T, S] => (class) builtins.tuple[Unknown]
        S => TypeVar[S, ]
        ... => Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant