-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed as not planned
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working
Description
Describe the bug
As of v1.1.348, I'm getting the following error:
error: Access to generic instance variable through class is ambiguous (reportGeneralTypeIssues)
Code or Screenshots
Minimal example:
from typing import Generic, Type, TypeVar
T = TypeVar("T")
class Bar:
pass
class Foo(Generic[T]):
bar: Type[T]
Foo[Bar].barI don't understand why this is ambiguous though. I'd think that it is pretty clear that the type of Foo[Bar].bar is Type[Bar]. Happy to learn if that's not the case though!
In context, the error can be seen in the ci/cd logs of kaiko-ai/typedspark#281, if you're interested.
VS Code extension or command-line
From the command line, v1.1.348. Previous versions did not raise this error.
Thanks in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
as designedNot a bug, working as intendedNot a bug, working as intendedbugSomething isn't workingSomething isn't working