avoid possible attribute err
This commit is contained in:
parent
b95d4586e2
commit
fa5983613b
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def is_data_provider(fun: Any) -> bool:
|
|||
return False
|
||||
|
||||
# probably a helper function?
|
||||
if fun.__name__.startswith("_"):
|
||||
if hasattr(fun, '__name__') and fun.__name__.startswith('_'):
|
||||
return False
|
||||
|
||||
return_type = sig.return_annotation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue