Skip to content

Commit

Permalink
fix: fix typing for v37
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Sep 16, 2023
1 parent f12d720 commit c34cb10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/psygnal/_evented_model_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def __setattr__(self, name: str, value: Any) -> None:
# if we have any dependent properties, 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] = {
deps_before: Dict[str, Any] = {
dep: getattr(self, dep) for dep in self.__field_dependents__.get(name, ())
}

Expand Down
2 changes: 1 addition & 1 deletion src/psygnal/_evented_model_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def __setattr__(self, name: str, value: Any) -> None:
# if we have any dependent properties, 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] = {
deps_before: Dict[str, Any] = {
dep: getattr(self, dep) for dep in self.__field_dependents__.get(name, ())
}

Expand Down

0 comments on commit c34cb10

Please sign in to comment.