Skip to content

Commit

Permalink
✏️ fix: message for rodi.InvalidFactory exception
Browse files Browse the repository at this point in the history
  • Loading branch information
StummeJ committed Feb 27, 2024
1 parent cdf4ff0 commit d8cecac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rodi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def __init__(self, _type):
super().__init__(
f"The factory specified for type {class_name(_type)} is not "
f"valid, it must be a function with either these signatures: "
f"def example_factory(context, type): "
f"def example_factory(context, activating_type, registered_type): "
f"or,"
f"def example_factory(context, activating_type): "
f"or,"
f"def example_factory(context): "
f"or,"
Expand Down

0 comments on commit d8cecac

Please sign in to comment.