Skip to content

Fix: ensure default providers are not mutated in factory.py (#2311)#2313

Closed
sathvik70004-cmyk wants to merge 1 commit intojoke2k:masterfrom
sathvik70004-cmyk:fix/default-provider-mutation-2311
Closed

Fix: ensure default providers are not mutated in factory.py (#2311)#2313
sathvik70004-cmyk wants to merge 1 commit intojoke2k:masterfrom
sathvik70004-cmyk:fix/default-provider-mutation-2311

Conversation

@sathvik70004-cmyk
Copy link

What does this change

Brief summary of the changes.

What was wrong

Description of the root cause of the issue.

How this fixes it

Description of how the changes fix the issue.

Fixes #...

Checklist

  • I have read the documentation about CONTRIBUTING
  • I have read the documentation about Coding style
  • I have run make lint

@stefan6419846
Copy link
Contributor

I guess that this should have a test as well to avoid this side effect in the future.

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

I dont see how this change modifies any behavior

providers = providers or PROVIDERS

providers += includes
providers = providers+includes
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the AI might be hallucinating here. I don't see how the change would prevent mutation. If it does, please add a comment explaining.

@fcurella
Copy link
Collaborator

Closed in a801a34

@fcurella fcurella closed this Mar 12, 2026
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.

3 participants