Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Sep 21, 2023
1 parent c23a39e commit fe94e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/farm_ng/core/event_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def request_reply_handler(self, handler: Callable) -> None:

def add_request_reply_handler(self, handler: Callable) -> None:
"""Sets the request/reply handler."""
if not isinstance(handler, Callable):
if not type(handler) == Callable:
msg = "handler must be a callable"
raise TypeError(msg)

Expand Down

0 comments on commit fe94e8e

Please sign in to comment.