We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a89e14 commit e5d110bCopy full SHA for e5d110b
asyncstdlib/functools.py
@@ -270,7 +270,9 @@ def decorator(
270
271
return decorator
272
273
- if not iscoroutinefunction(type_or_getter):
+ if not iscoroutinefunction(
274
+ type_or_getter # pyright: ignore[reportUnknownArgumentType]
275
+ ):
276
raise ValueError("cached_property can only be used with a coroutine function")
277
278
return CachedProperty(type_or_getter)
0 commit comments