Skip to content

fix: replace in place dataclass mutations for pgvector #11087#3142

Merged
davidsbatista merged 3 commits intodeepset-ai:mainfrom
HuyDC:fix-replace-in-place-dataclass-mutations-pgvector-11087
Apr 13, 2026
Merged

fix: replace in place dataclass mutations for pgvector #11087#3142
davidsbatista merged 3 commits intodeepset-ai:mainfrom
HuyDC:fix-replace-in-place-dataclass-mutations-pgvector-11087

Conversation

@HuyDC
Copy link
Copy Markdown
Contributor

@HuyDC HuyDC commented Apr 13, 2026

Related Issues

Proposed Changes:

Replace dataclass objects when modifying instead of mutating in place.

How did you test it?

Ran all unit tests and integration tests and check if in place replacement warning still occurs.
hatch run fmt and hatch run test:all pass

Notes for the reviewer

New variables are created, because linter does not like manipulating the loop variables.

Checklist

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 13, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report (pgvector)

This PR does not seem to contain any modification to coverable code.

@HuyDC HuyDC marked this pull request as ready for review April 13, 2026 11:20
@HuyDC HuyDC requested a review from a team as a code owner April 13, 2026 11:20
@HuyDC HuyDC requested review from davidsbatista and removed request for a team April 13, 2026 11:20
@HuyDC HuyDC changed the title Fix replace in place dataclass mutations for pgvector #11087 Fix: replace in place dataclass mutations for pgvector #11087 Apr 13, 2026
@HuyDC HuyDC changed the title Fix: replace in place dataclass mutations for pgvector #11087 fix: replace in place dataclass mutations for pgvector #11087 Apr 13, 2026
Copy link
Copy Markdown
Contributor

@davidsbatista davidsbatista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you for the contribution!

@davidsbatista
Copy link
Copy Markdown
Contributor

@HuyDC, please sign the CLA so we can merge it. Thanks once again for your contribution!

@davidsbatista davidsbatista merged commit 5684e43 into deepset-ai:main Apr 13, 2026
8 of 9 checks passed
@HuyDC HuyDC deleted the fix-replace-in-place-dataclass-mutations-pgvector-11087 branch April 13, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check for PGVectorDocumentStore dataclass in-place mutation warning

3 participants