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

Ouverte
#8,729 3 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@lechakrawarthy y travaille déjà.

Depuis le 31/10/2026.

  • #8731 par @lechakrawarthy — ouverte

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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

Langage dominant
Python
Étoiles
3.3k
Forks
511
Merge moyen
3 j 8 h
PR mergées (30 j)
92

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de aws-powertools/powertools-lambda-python

Toutes les issues de aws-powertools/powertools-lambda-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.