Skip to content

Commit fcd3958

Browse files
committed
Revert "Improve the cache_selfie types to be clear that there should be no arguments at all."
This reverts commit d5b0a68.
1 parent d5b0a68 commit fcd3958

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

python/selfie-lib/selfie_lib/CacheSelfie.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
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
1818
def 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

2323
def 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

Comments
 (0)