From 9c7115bd2308791dd9571df7e8d2caaf8c4bf6dd Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Mon, 26 Oct 2026 14:45:05 -0400 Subject: [PATCH] Allow None in cache_parameters maxsize An unbounded lru_cache reports None for maxsize, matching cache_info().maxsize. --- stdlib/functools.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/functools.pyi b/stdlib/functools.pyi index 23260ab90855..6c8ab541fe48 100644 --- a/stdlib/functools.pyi +++ b/stdlib/functools.pyi @@ -65,7 +65,7 @@ class _CacheInfo(NamedTuple): @type_check_only class _CacheParameters(TypedDict): - maxsize: int + maxsize: int | None typed: bool @final