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:mutable default argument. #901

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

shudaizi1989
Copy link
Contributor

This Pull Request fixes an issue where mutable default arguments (e.g., [], {}) were used in function definitions. In Python, mutable default arguments can lead to unexpected behavior because they are evaluated once at the time of function definition and shared across all function calls.

@CLAassistant
Copy link

CLAassistant commented Feb 28, 2025

CLA assistant check
All committers have signed the CLA.

@gregpr07 gregpr07 merged commit 5b08613 into browser-use:main Mar 2, 2025
1 check passed
AryamanParida pushed a commit to AryamanParida/browser-use that referenced this pull request Mar 7, 2025
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.

3 participants