Skip to content

Allow None in cache_parameters maxsize - #16625

Merged
srittau merged 1 commit into
python:mainfrom
tamird:functools-cache-parameters-none
Oct 27, 2026
Merged

srittau merged 1 commit into
python:mainfrom
tamird:functools-cache-parameters-none

Conversation

@tamird

@tamird tamird commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Allow cache_parameters()["maxsize"] to be None for an unbounded cache, matching the runtime API.

Agent: Codex.

An unbounded lru_cache reports None for maxsize, matching
cache_info().maxsize.
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit 1a7e176 into python:main Oct 27, 2026
88 checks passed
@tamird
tamird deleted the functools-cache-parameters-none branch October 27, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants