@@ -2144,7 +2144,8 @@ class C(B[int]):
2144
2144
self .assertEqual (x .bar , 'abc' )
2145
2145
self .assertEqual (x .__dict__ , {'foo' : 42 , 'bar' : 'abc' })
2146
2146
samples = [Any , Union , Tuple , Callable , ClassVar ,
2147
- Union [int , str ], ClassVar [List ], Tuple [int , ...], Callable [[str ], bytes ],
2147
+ Union [int , str ], ClassVar [List ], Tuple [int , ...], Tuple [()],
2148
+ Callable [[str ], bytes ],
2148
2149
typing .DefaultDict , typing .FrozenSet [int ]]
2149
2150
for s in samples :
2150
2151
for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
@@ -2162,7 +2163,8 @@ class C(B[int]):
2162
2163
def test_copy_and_deepcopy (self ):
2163
2164
T = TypeVar ('T' )
2164
2165
class Node (Generic [T ]): ...
2165
- things = [Union [T , int ], Tuple [T , int ], Callable [..., T ], Callable [[int ], int ],
2166
+ things = [Union [T , int ], Tuple [T , int ], Tuple [()],
2167
+ Callable [..., T ], Callable [[int ], int ],
2166
2168
Tuple [Any , Any ], Node [T ], Node [int ], Node [Any ], typing .Iterable [T ],
2167
2169
typing .Iterable [Any ], typing .Iterable [int ], typing .Dict [int , str ],
2168
2170
typing .Dict [T , Any ], ClassVar [int ], ClassVar [List [T ]], Tuple ['T' , 'T' ],
0 commit comments