Skip to content

Prevent from_dict from modifying non-local scope - #148

Merged
mrontio merged 2 commits into
neuromorphs:mainfrom
mrontio:main
Jun 16, 2025
Merged

mrontio merged 2 commits into
neuromorphs:mainfrom
mrontio:main

Conversation

@mrontio

@mrontio mrontio commented Jun 16, 2025

Copy link
Copy Markdown
Collaborator

kwargs here is a pointer, so del would delete it from the parent variable.

kwargs here is a pointer, so del would delete it from the parent variable.

@Jegp Jegp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Really nice catch here. Thanks for the addition!

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