Docs: IdempotencyConfig docstring says local_cache_max_items defaults to 1024, it is 256

オープン
#8,729 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@lechakrawarthy がすでに取り組んでいます。

2026年10月31日 から。

  • #8731 @lechakrawarthy による — オープン

評価

この issue はまだ評価されていません。

説明

documentation good first issue help wanted idempotency

[!WARNING]
For contributors, human or agent. Comment here to claim this issue and wait for the assignment before opening a PR; if two PRs show up, the assignee's stays. AI-assisted work is welcome, say so in the PR and tell us how you verified it: run the tests yourself and paste what you saw, do not describe runs you did not do. Read AGENTS.md first, it has the commands and the rules the CI enforces. This goes into 3.41.0.

Expected Behaviour

The IdempotencyConfig docstring states the real default for local_cache_max_items.

Current Behaviour

aws_lambda_powertools/utilities/idempotency/config.py declares local_cache_max_items: int = 256 and the documentation table says 256, but the docstring says "by default 1024".

Code snippet
from aws_lambda_powertools.utilities.idempotency import IdempotencyConfig
IdempotencyConfig().local_cache_max_items  # 256, docstring says 1024
Possible Solution

Fix the docstring line to 256. Docs-only change, use the docs(idempotency): prefix in the PR title.

Item 12 of the Idempotency audit in #8603. No tests or AWS resources needed.

Powertools for AWS Lambda (Python) version

latest

AWS Lambda function runtime

3.13

Packaging format used

PyPi

Debugging logs

No response

主要言語
Python
スター
3.3k
フォーク
511
平均マージ
3日 8時間
マージ済み PR(30日)
92

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws-powertools/powertools-lambda-python のほかの issue

aws-powertools/powertools-lambda-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。