Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add comment about type annotations in CachedMapperCache
Browse files Browse the repository at this point in the history
majosm committed Jan 28, 2025
1 parent 56b162a commit 0bfb2b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pytato/transform/__init__.py
Original file line number Diff line number Diff line change
@@ -307,6 +307,10 @@ def add(
self,
key_inputs:
CacheExprT
# Currently, Python's type system doesn't have a way to annotate
# containers of args/kwargs (ParamSpec won't work here). So we have
# to fall back to using Any. More details here:
# https://github.com/python/typing/issues/1252
| tuple[CacheExprT, tuple[Any, ...], dict[str, Any]],
result: CacheResultT,
key: CacheKeyT | None = None) -> CacheResultT:

0 comments on commit 0bfb2b2

Please sign in to comment.