You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from classes import AssociatedType, Supports, typeclass
7
+
8
+
X = TypeVar('X')
9
+
10
+
class Compare(AssociatedType):
11
+
...
12
+
13
+
@typeclass(Compare)
14
+
def compare(instance: List[X]) -> X:
15
+
...
16
+
out: |
17
+
main:10: error: Generic type "main.Compare" with "0" type arguments does not match generic instance declaration "builtins.list[X`-1]" with "1" type arguments
0 commit comments