Sitelet https://github.com/ipython/ipython/pull/15372
Skip to content

Skip instance migration for identical autoreload types - #15372

Draft
aryansk wants to merge 1 commit into
ipython:mainfrom
aryansk:codex/ipython-14984-63bc9c98
Draft

Skip instance migration for identical autoreload types#15372
aryansk wants to merge 1 commit into
ipython:mainfrom
aryansk:codex/ipython-14984-63bc9c98

Conversation

@aryansk

@aryansk aryansk commented Aug 16, 2026

Copy link
Copy Markdown

🤖🍆

Fixes #14984

Summary

  • skip instance migration when autoreload resolves the old and new class to the same object
  • avoid invalid __class__ assignment for immutable/builtin extension types such as functools.partial
  • add focused regression coverage for the identical-type path

Testing

  • Not run locally; added a direct regression test for update_instances(partial, partial).

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.

autoreload breaks on partial

1 participant