Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug: Shared mutable class attribute causing unexpected behavior #984

Merged
merged 1 commit into from
May 1, 2024

Conversation

elisalimli
Copy link
Contributor

This pull request addresses a bug where instances of a class were unintentionally sharing a mutable class attribute, leading to unexpected behavior. The issue was caused by the class attribute being initialized outside of the init method, resulting in all instances of the class sharing the same list object. To resolve this issue, the class attribute initialization has been moved to the init method.

Copy link

render bot commented May 1, 2024

Copy link

vercel bot commented May 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
superagent-ui ✅ Ready (Inspect) Visit Preview May 1, 2024 7:33am

@elisalimli elisalimli merged commit 8d03c62 into main May 1, 2024
8 checks passed
@elisalimli elisalimli deleted the fix/shared-class-attribute-llm-agent branch May 1, 2024 07:40
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.

1 participant