Skip to content

Commit

Permalink
Fix ComponentField error message. (#126)
Browse files Browse the repository at this point in the history
This bug would not have been possible in a strongly typed language....
  • Loading branch information
AdamHillier authored Mar 5, 2020
1 parent b472b51 commit a2d5dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zookeeper/core/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __init__(
elif isinstance(default, PartialComponent) or utils.is_component_class(default):
if len(kwargs) > 0:
default = PartialComponent(default, **kwargs)
elif utils.is_component_instance:
elif utils.is_component_instance(default):
raise TypeError(
"The `default` passed to `ComponentField` must be a component class, "
f"not a component instance. Received: {repr(default)}."
Expand Down

0 comments on commit a2d5dcc

Please sign in to comment.