@@ -3288,7 +3288,8 @@ class C(B[int]):
3288
3288
self .assertEqual (x .bar , 'abc' )
3289
3289
self .assertEqual (x .__dict__ , {'foo' : 42 , 'bar' : 'abc' })
3290
3290
samples = [Any , Union , Tuple , Callable , ClassVar ,
3291
- Union [int , str ], ClassVar [List ], Tuple [int , ...], Callable [[str ], bytes ],
3291
+ Union [int , str ], ClassVar [List ], Tuple [int , ...], Tuple [()],
3292
+ Callable [[str ], bytes ],
3292
3293
typing .DefaultDict , typing .FrozenSet [int ]]
3293
3294
for s in samples :
3294
3295
for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
@@ -3306,7 +3307,8 @@ class C(B[int]):
3306
3307
def test_copy_and_deepcopy (self ):
3307
3308
T = TypeVar ('T' )
3308
3309
class Node (Generic [T ]): ...
3309
- things = [Union [T , int ], Tuple [T , int ], Callable [..., T ], Callable [[int ], int ],
3310
+ things = [Union [T , int ], Tuple [T , int ], Tuple [()],
3311
+ Callable [..., T ], Callable [[int ], int ],
3310
3312
Tuple [Any , Any ], Node [T ], Node [int ], Node [Any ], typing .Iterable [T ],
3311
3313
typing .Iterable [Any ], typing .Iterable [int ], typing .Dict [int , str ],
3312
3314
typing .Dict [T , Any ], ClassVar [int ], ClassVar [List [T ]], Tuple ['T' , 'T' ],
0 commit comments