diff --git a/src/psygnal/_evented_model_v1.py b/src/psygnal/_evented_model_v1.py index 724e45db..d85b4fb5 100644 --- a/src/psygnal/_evented_model_v1.py +++ b/src/psygnal/_evented_model_v1.py @@ -354,7 +354,7 @@ def __setattr__(self, name: str, value: Any) -> None: # grab current value before = getattr(self, name, object()) - # if we have any dependent properties, we need to grab their values + # if we have any dependent attributes, we need to grab their values # before we set the new value, so that we can emit events for them # after the new value is set (only if they have changed). deps_before: Dict[str, Any] = { diff --git a/src/psygnal/_evented_model_v2.py b/src/psygnal/_evented_model_v2.py index 877ab958..89cd9ff9 100644 --- a/src/psygnal/_evented_model_v2.py +++ b/src/psygnal/_evented_model_v2.py @@ -340,7 +340,7 @@ def __setattr__(self, name: str, value: Any) -> None: # grab current value before = getattr(self, name, object()) - # if we have any dependent properties, we need to grab their values + # if we have any dependent attributes, we need to grab their values # before we set the new value, so that we can emit events for them # after the new value is set (only if they have changed). deps_before: Dict[str, Any] = { @@ -357,7 +357,7 @@ def __setattr__(self, name: str, value: Any) -> None: if not _check_field_equality(type(self), name, after, before): signal_instance.emit(after) # emit event - # also emit events for any dependent computed property setters as well + # also emit events for any dependent attributes as well for dep, before_val in deps_before.items(): after_val = getattr(self, dep) if not _check_field_equality(type(self), dep, after_val, before_val):