Skip to content

Commit

Permalink
Fix new ruff lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jul 17, 2024
1 parent 322acb8 commit cb5451e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/pykka/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ def __eq__(
return False
if self._actor != other._actor: # pyright: ignore[reportUnknownMemberType]
return False
if self._attr_path != other._attr_path:
return False
return True
return self._attr_path == other._attr_path

def __hash__(self) -> int:
return hash((self._actor, self._attr_path))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_exception_is_logged_when_returned_to_caller(
f"Exception returned from {actor_ref} to caller:"
)
assert log_record.exc_info
assert log_record.exc_info[0] == Exception
assert log_record.exc_info[0] is Exception
assert str(log_record.exc_info[1]) == "foo"


Expand All @@ -123,7 +123,7 @@ def test_exception_is_logged_when_not_reply_requested(

assert log_record.getMessage() == f"Unhandled exception in {actor_ref}:"
assert log_record.exc_info
assert log_record.exc_info[0] == Exception
assert log_record.exc_info[0] is Exception
assert str(log_record.exc_info[1]) == "foo"


Expand Down

0 comments on commit cb5451e

Please sign in to comment.