@@ -50,7 +50,7 @@ def __call__[**P, R](self, c: CoroLike[P, R], /) -> CoroFunc[P, R]: ...
5050 def f__call__ [** P , R ](self , c : CoroLike [P , R ], / ) -> CoroFunc [P , R ]: ... # noqa: ANN001
5151
5252 class ExprWrapper :
53- """Future proof against runtime change preventing call expr in type statement ."""
53+ """Wrapper since call expressions aren't allowed in type statements ."""
5454
5555 def __class_getitem__ (cls , key : None ) -> t .Any :
5656 return type (
@@ -83,7 +83,9 @@ def corocache(
8383 restrictive.
8484
8585 Note: This by default uses the args and kwargs of the original coroutine
86- function as a cache key. This includes instances (self) when wrapping methods.
86+ function as a cache key.
87+ This includes instances (self) when wrapping methods.
88+
8789 Consider not wrapping instance methods, but what those methods call when
8890 feasible in cases where this may matter, or using a cache transform.
8991
@@ -92,7 +94,8 @@ def corocache(
9294 Parameters
9395 ----------
9496 ttl: float | None
95- The time to live in seconds for cached results. Defaults to None (forever)
97+ The time to live in seconds for cached results.
98+ Defaults to None (forever)
9699 cache_transform: CacheTransformer | None
97100 An optional callable that transforms args and kwargs used
98101 as a cache key.
@@ -158,7 +161,8 @@ def lrucorocache(
158161 restrictive.
159162
160163 Note: This by default uses the args and kwargs of the original coroutine
161- function as a cache key. This includes instances (self) when wrapping methods.
164+ function as a cache key.
165+ This includes instances (self) when wrapping methods.
162166 Consider not wrapping instance methods, but what those methods call when
163167 feasible in cases where this may matter, or using a cache transform.
164168
@@ -169,7 +173,8 @@ def lrucorocache(
169173 Parameters
170174 ----------
171175 ttl: float | None
172- The time to live in seconds for cached results. Defaults to None (forever)
176+ The time to live in seconds for cached results.
177+ Defaults to None (forever)
173178 maxsize: int
174179 The maximum number of items to retain no matter if they have reached
175180 expiration by ttl or not.
0 commit comments