Skip to content

Commit

Permalink
style: fix linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Aug 27, 2024
1 parent 0291e21 commit 6fea8f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dramatiq/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def __new__(metacls, name, bases, attrs):
return clazz

def __getattr__(cls, name):
if '__actor__' not in cls.__dict__:
if "__actor__" not in cls.__dict__:
# avoid infinite recursion on GenericActor
raise AttributeError(f"type object '{cls.__name__}' has no attribute '{name}'")
raise AttributeError(f"type object {cls.__name__!r} has no attribute {name!r}")
return getattr(cls.__actor__, name)


Expand Down
2 changes: 1 addition & 1 deletion tests/test_generic_actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ def perform(self):

def test_getattr_generic_actor():
with pytest.raises(AttributeError):
dramatiq.GenericActor.missing_property
dramatiq.GenericActor.missing_property

0 comments on commit 6fea8f6

Please sign in to comment.