1111
1212
1313@overload
14- def cache_selfie (to_cache : Callable [[()] , str ]) -> "CacheSelfie[str]" : ...
14+ def cache_selfie (to_cache : Callable [... , str ]) -> "CacheSelfie[str]" : ...
1515
1616
1717@overload
1818def cache_selfie (
19- to_cache : Callable [[()] , T ], roundtrip : Roundtrip [T , str ]
19+ to_cache : Callable [... , T ], roundtrip : Roundtrip [T , str ]
2020) -> "CacheSelfie[T]" : ...
2121
2222
2323def cache_selfie (
24- to_cache : Union [Callable [[()] , str ], Callable [[()] , T ]],
24+ to_cache : Union [Callable [... , str ], Callable [... , T ]],
2525 roundtrip : Optional [Roundtrip [T , str ]] = None ,
2626) -> Union ["CacheSelfie[str]" , "CacheSelfie[T]" ]:
2727 if roundtrip is None :
@@ -39,7 +39,7 @@ def __init__(
3939 self ,
4040 disk : DiskStorage ,
4141 roundtrip : Roundtrip [T , str ],
42- generator : Callable [[()] , T ],
42+ generator : Callable [... , T ],
4343 ):
4444 self .disk = disk
4545 self .roundtrip = roundtrip
@@ -107,7 +107,7 @@ def __init__(
107107 self ,
108108 disk : DiskStorage ,
109109 roundtrip : Roundtrip [T , bytes ],
110- generator : Callable [[()] , T ],
110+ generator : Callable [... , T ],
111111 ):
112112 self .disk = disk
113113 self .roundtrip = roundtrip
0 commit comments