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
|
return False
|
||||||
|
|
||||||
# probably a helper function?
|
# probably a helper function?
|
||||||
if fun.__name__.startswith("_"):
|
if hasattr(fun, '__name__') and fun.__name__.startswith('_'):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return_type = sig.return_annotation
|
return_type = sig.return_annotation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue