Skip to content

loneElement: fix knownSize count#340

Merged
mpollmeier merged 1 commit intomasterfrom
michael/lone-element-count-fix
Jul 11, 2025
Merged

loneElement: fix knownSize count#340
mpollmeier merged 1 commit intomasterfrom
michael/lone-element-count-fix

Conversation

@mpollmeier
Copy link
Contributor

if the iterable can only be iterated once, the 'knownSize' will
decrement on iteration, leading to errors like this:
Iterable was expected to have exactly one element, but it has 1

if the iterable can only be iterated once, the 'knownSize' will
decrement on iteration, leading to errors like this:
`Iterable was expected to have exactly one element, but it has 1`
@mpollmeier mpollmeier merged commit 1e0bb23 into master Jul 11, 2025
1 check 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.

2 participants

Comments