@@ -3282,7 +3282,8 @@ class C(B[int]):
3282
3282
self .assertEqual (x .bar , 'abc' )
3283
3283
self .assertEqual (x .__dict__ , {'foo' : 42 , 'bar' : 'abc' })
3284
3284
samples = [Any , Union , Tuple , Callable , ClassVar ,
3285
- Union [int , str ], ClassVar [List ], Tuple [int , ...], Callable [[str ], bytes ],
3285
+ Union [int , str ], ClassVar [List ], Tuple [int , ...], Tuple [()],
3286
+ Callable [[str ], bytes ],
3286
3287
typing .DefaultDict , typing .FrozenSet [int ]]
3287
3288
for s in samples :
3288
3289
for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
@@ -3300,7 +3301,8 @@ class C(B[int]):
3300
3301
def test_copy_and_deepcopy (self ):
3301
3302
T = TypeVar ('T' )
3302
3303
class Node (Generic [T ]): ...
3303
- things = [Union [T , int ], Tuple [T , int ], Callable [..., T ], Callable [[int ], int ],
3304
+ things = [Union [T , int ], Tuple [T , int ], Tuple [()],
3305
+ Callable [..., T ], Callable [[int ], int ],
3304
3306
Tuple [Any , Any ], Node [T ], Node [int ], Node [Any ], typing .Iterable [T ],
3305
3307
typing .Iterable [Any ], typing .Iterable [int ], typing .Dict [int , str ],
3306
3308
typing .Dict [T , Any ], ClassVar [int ], ClassVar [List [T ]], Tuple ['T' , 'T' ],
0 commit comments