Skip to content

Commit e5d110b

Browse files
ignore defensive runtime check
1 parent 7a89e14 commit e5d110b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

asyncstdlib/functools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ def decorator(
270270

271271
return decorator
272272

273-
if not iscoroutinefunction(type_or_getter):
273+
if not iscoroutinefunction(
274+
type_or_getter # pyright: ignore[reportUnknownArgumentType]
275+
):
274276
raise ValueError("cached_property can only be used with a coroutine function")
275277

276278
return CachedProperty(type_or_getter)

0 commit comments

Comments
 (0)