Commit 52e74a4a authored by John Kirkwood's avatar John Kirkwood

Check that callables have __name__.

parent 816e5863
Pipeline #2541 passed with stages
in 36 seconds
......@@ -161,6 +161,9 @@ class Importable:
if name.startswith('_'):
continue
if not hasattr(member, '__name__'):
continue
yield Callable(name, member)
@property
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment