mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Improve type annotations for the helper methods on a CachedFunction
. (#14685)
This commit is contained in:
parent
652d1669c5
commit
864c3f85b0
1
changelog.d/14685.misc
Normal file
1
changelog.d/14685.misc
Normal file
@ -0,0 +1 @@
|
||||
Improve type annotations for the helper methods on a `CachedFunction`.
|
@ -53,9 +53,9 @@ F = TypeVar("F", bound=Callable[..., Any])
|
||||
|
||||
|
||||
class CachedFunction(Generic[F]):
|
||||
invalidate: Any = None
|
||||
invalidate_all: Any = None
|
||||
prefill: Any = None
|
||||
invalidate: Callable[[Tuple[Any, ...]], None]
|
||||
invalidate_all: Callable[[], None]
|
||||
prefill: Callable[[Tuple[Any, ...], Any], None]
|
||||
cache: Any = None
|
||||
num_args: Any = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user