Skip to content

Commit

Permalink
style(pre-commit.ci): auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent 31f8ef7 commit 4b35ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/psygnal/_dataclass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def iter_fields(
yield field_name, p_field.annotation
else:
for p_field in cls.__fields__.values(): # type: ignore [attr-defined]
if p_field.field_info.allow_mutation or not exclude_frozen: # type: ignore # noqa
if p_field.field_info.allow_mutation or not exclude_frozen: # type: ignore
yield p_field.name, p_field.outer_type_ # type: ignore
return

Expand Down
2 changes: 1 addition & 1 deletion src/psygnal/_group_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def __get__(
# clean up the cache when the instance is deleted
with contextlib.suppress(TypeError):
# mypy says too many attributes for weakref.finalize, but it's wrong.
weakref.finalize(instance, self._instance_map.pop, obj_id, None) # type: ignore [call-arg] # noqa
weakref.finalize(instance, self._instance_map.pop, obj_id, None) # type: ignore [call-arg]

return self._instance_map[obj_id]

Expand Down

0 comments on commit 4b35ef7

Please sign in to comment.