Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jan 2, 2021
1 parent aef08dd commit 66e5155
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion magicgui/widgets/_concrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def merge_super_sigs(cls, exclude=("widget_type", "kwargs", "args", "kwds", "ext
params = {}
param_docs = []
for sup in reversed(inspect.getmro(cls)):
sig = inspect.signature(getattr(sup, "__init__"))
try:
sig = inspect.signature(getattr(sup, "__init__"))
# in some environments `object` or `abc.ABC` will raise ValueError here
except ValueError:
continue
for name, param in sig.parameters.items():
if name in exclude:
continue
Expand Down

0 comments on commit 66e5155

Please sign in to comment.