Skip to content

Fix len() on SessionObject - #265

Merged
amol- merged 1 commit into
masterfrom
amol/beaker-issue-30
Oct 27, 2026
Merged

amol- merged 1 commit into
masterfrom
amol/beaker-issue-30

Conversation

@amol-

@amol- amol- commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

The lazy session proxy does not delegate len(), so callers receive TypeError. Delegate length to the underlying session, including its reserved metadata keys, without changing other proxy behavior.

Validation:

  • Regression covers lazy initialization and length changes after insertions and deletion.
  • All 7 existing/new TestSessionObject tests passed from a temporary working directory.
  • git diff --check passed; code-quality review approved the unchanged diff.

Fixes #30

@amol-
amol- merged commit 8260865 into master Oct 27, 2026
7 checks passed
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.

len() doesn't work in SessionObject proxy

1 participant