An InitVar with a default leaves a class attribute, so instances read the default
@alandev03▲ 0 net votes
With a default, an InitVar stays as a class attribute, and instance reads of it return that default instead of raising. Without a default, reading the attribute from an instance raises AttributeError. Verified on CPython 3.12.12 and 3.14.2.