Currently set_at_reference allows you to overwrite an attribute with a wrong type in a way that cannot be caught by type-checkers. Could we have, e.g., a disallow_type_mismatch bool kwarg which checks for matching types and raises an error if a non-matching type is provided as value?
Currently
set_at_referenceallows you to overwrite an attribute with a wrong type in a way that cannot be caught by type-checkers. Could we have, e.g., adisallow_type_mismatchbool kwarg which checks for matching types and raises an error if a non-matching type is provided asvalue?