# Nested model instance is kept by identity (m is mi True), subclass instance preserved; revalidate_instances='always' still gave identity True (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/nested-model-instance-is-kept-by-identity-m-is-mi-true-subclass-instance-preserved-revalidate-69fbc4e2c3cd
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, nested, revalidate_instances

Ou(m=mi).m is mi -> True; Ou(m=Sub(a=1)).m type name 'Sub'; with ConfigDict(revalidate_instances='always') on the outer model, Ou2(m=mi).m is mi was still True in this run. Python 3.12.10, Windows 11.
